[Gambas-user] NCurses window height and width

Tobias Boege taboege at gmail.com
Sun May 5 15:59:03 CEST 2019


On Sun, 05 May 2019, KKing wrote:
> I have the following code
> <<
> Private $hText as Window
> $hText = New Window(False, 0, 0, 120, 40) As "Text"
> >>
> I thought this means a window should be created top left and be 120 columns
> by 40 rows?
> But the window (even trying higher and lower numbers) is always 80 columns
> by 25 rows.
> This is using Xterm as the terminal in the gambas help options screen, on
> 3.13.0 on Debian 9.9 64bit with LXDE.
> 

Can't reproduce. This script:

  #!/usr/bin/env gbs3

  Use "gb.ncurses"

  Private $hText as Window

  Public Sub Main()
    $hText = New Window(False, 0, 0, 120, 40) As "Text"
    $hText.Background = Color.Green
  End

works here in Konsole, xterm and urxvt.

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk


More information about the User mailing list