bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LINES && COLS


From: Bob Rossi
Subject: LINES && COLS
Date: Sat, 28 Jan 2006 23:27:08 -0500
User-agent: Mutt/1.5.9i

Hi,

I've spent a ton of time recently trying to understand how ncurses
manipulates the LINES and COLS variables, and how they effect the
display of the windows.

For some reason, on Cygwin, my application does not display properly,
unless I have a 25x80 terminal window.

My program indirectly calls tgetent through readline, and I've noticed
that on linux that calls set LINES and COLS to the correct size of the
terminal. However on Cygwin that call does not set LINES and COLS at
all.

Finally, when initscr is called on Linux the variables are already set,
and stay set. However, on Cygwin, they were not set, and get set to
25x80, which is not the size of the terminal.

On both windows and linux the screen size is correct when I fetch it
with the ioctl TIOCGWINSZ.

If I set the environment variables LINES and COLUMNS, then on Cygwin the
display works, cause initscr figures out the correct size of the
terminal. 

I was really hoping someone here could help me figure out what is wrong
with the initscr code (or with my code), so that I can get my
application working on Cygwin.

Thanks,
Bob Rossi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]