Where's the Ncurses Cursor?

Post Reply
stevedee
Posts: 90
Joined: Monday 20th March 2017 6:06pm

Where's the Ncurses Cursor?

Post by stevedee » Friday 30th November 2018 12:02pm

I'm just curious (so don't waste any time, unless you too are curious) about how to display a cursor on an gb.Ncurses window.

A simple program like this:-
Public Sub Main()

  With Window
    .Border = Border.ACS        
    .CursorX = 1 + index
    .CursorY = 1 + index
    .Print("cursor x,y: " & .CursorX & ", " & .CursorY)
  End With
  Screen.Cursor = Cursor.VeryVisible
 
End
...proves that the cursor is moving, but there is no sign of the actual cursor.

Remembering that there may be a problem with 'lite' terminals, I also tested on xterm.

Thinking that the cursor may dissapear when the program completes, I tried again with this code:-
Public Sub Main()
Dim index As Integer

  For index = 0 To 10
    With Window
      .Border = Border.ACS        
      .CursorX = 1 + index
      .CursorY = 1 + index
      .Print("cursor x,y: " & .CursorX & ", " & .CursorY)
    End With
    Screen.Cursor = Cursor.VeryVisible
    Wait 1
  Next
End
...still no cursor within my window.

EDIT: I think the problem is that "Screen.Cursor" does not refer to the Ncurses cursor. I need to use Cursor in gb.ncurses.

Post Reply