[Top][All Lists]

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

Re: ncurses, OS X and terminal size

From: Thomas Dickey
Subject: Re: ncurses, OS X and terminal size
Date: Sat, 18 Mar 2006 11:26:07 -0500 (EST)

On Sat, 18 Mar 2006, Nicholas Cole wrote:

The following python code seems to expose a bug in curses library on
OS X.  As far as I can tell this is a problem with the curses library
itself, rather than the python wrapper or the terminal applications.

The following python code attempts to print the size of the terminal.
On a linux system the size of the terminal is updated as a terminal
window is resized.  However, on an OS X system, the size reported by
the following code is always the size of the terminal when the program
was executed.

Perhaps your terminal has set $LINES and $COLUMNS variables (commonly
done with termcap-oriented systems).

Thomas E. Dickey

reply via email to

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