[Gambas-user] ncurses howto

Demosthenes Koptsis demosthenesk at gmail.com
Mon May 27 20:43:52 CEST 2019


Hello,

i try ncurces with gambas3 and i have some difficulties.

i created a console application and i have the following code:

' Gambas module file

Public Sub Main()
   ' Display a message window
   Dim hMessage As New Window(True, 0, 0, 800, 600)
   hMessage.Border = 1
   hMessage.Background = Color.Blue
   hMessage.Foreground = Color.White
   hMessage.Print("Surprise!")
   hMessage.Show()
   Wait 10

End

if i dont write WAIT 10 seconds i get a black screen.

if i write WAIT 10 seconds i get the desired ncurses screen visible for 
10 secs.

How i can have the ncurses screen always visible?

Thanks Demosthenes.



More information about the User mailing list