Re: [Pythonmac-SIG] resizing terminal and curses

2006-03-25 Thread Ronald Oussoren
On 14-mrt-2006, at 19:00, Nicholas Cole wrote: > I couldn't find anything in the archives related to this. > > Using both Apple's python and a build of python2.4.2, there seems to > be a bug when using ncurses. curses.newwin() is supposed to give a > new window filling the pysical terminal, but

Re: [Pythonmac-SIG] resizing terminal and curses

2006-03-21 Thread Andrew Barnert
> Terminal.app behaives particularly strangely - crashing when the > window is enlarged for the second time (xterm crashes immediately), > though not the first For me, it crashes in Terminal.app the first time I try to enlarge the window, not the second. I see no difference between Terminal and xt

Re: [Pythonmac-SIG] resizing terminal and curses

2006-03-19 Thread Nicholas Cole
I'm still trying to investigate this problem with resizing terminals. I've found a method which can reliably determine the size of the terminal on OS X (not completely tested), which is to do the following: struct.unpack('hh', fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ, '')) However

Re: [Pythonmac-SIG] resizing terminal and curses

2006-03-14 Thread Ronald Oussoren
On 14-mrt-2006, at 19:00, Nicholas Cole wrote: > I couldn't find anything in the archives related to this. > > Using both Apple's python and a build of python2.4.2, there seems to > be a bug when using ncurses. curses.newwin() is supposed to give a > new window filling the pysical terminal, but

[Pythonmac-SIG] resizing terminal and curses

2006-03-14 Thread Nicholas Cole
I couldn't find anything in the archives related to this. Using both Apple's python and a build of python2.4.2, there seems to be a bug when using ncurses. curses.newwin() is supposed to give a new window filling the pysical terminal, but if the terminal has been resized this does not seem to hap