bug-ncurses
[Top][All Lists]
Advanced

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

Re: LINES && COLS


From: Bob Rossi
Subject: Re: LINES && COLS
Date: Sat, 4 Feb 2006 12:19:20 -0500
User-agent: Mutt/1.5.9i

On Tue, Jan 31, 2006 at 08:36:46PM -0500, Thomas Dickey wrote:
> On Sat, 28 Jan 2006, Bob Rossi wrote:
> 
> >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.
> 
> tgetent calls
>       _nc_setupterm which calls
>               _nc_get_screensize
> 
> The last one is where LINES/COLS are manipulated.  That slice has been 
> relatively stable for a few years - I'm not sure what would go wrong with 
> the cygwin package.  It's possible that you're linking with the termcap 
> library on cygwin.  That would explain the 25x80, for instance, if the
> termcap file contains those values - which it does for the "cygwin" entry.

Thanks, I did find the problem, and it is not related to ncurses. When I
create a PTY in my program, and give it to readline, readline sets LINES
and COLUMNS. The newly created PTY on Cygwin had size 25x80, whereas on
Linux, it was the same size as stdout.

Thanks for the help, I debugged both readline/ncurses on Cygwin, in the
function you provided above to find out what was going wrong.

Bob Rossi




reply via email to

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