Re: Replacing curses (Was: Re: Problem with curses and UTF-8)

2006-02-09 Thread Joel Hedlund
The code for handling window resizing isn't jumping out at me but I'll keep looking. (...jumping out, rather unexpectedly!) You might be interested in an ongoing discussion that I and Grant Edwards are holding in this newsgroup on the subject Best way of finding terminal width/height?.

Re: Replacing curses (Was: Re: Problem with curses and UTF-8)

2006-02-08 Thread Grant Edwards
On 2006-02-08, Ian Ward [EMAIL PROTECTED] wrote: I think there are enough escape sequences common to all modern terminals so that I can build a generic curses-replacement for my library. Why not use termcap/terminfo? -- Grant Edwards grante Yow! Where does it

Re: Replacing curses (Was: Re: Problem with curses and UTF-8)

2006-02-08 Thread Ian Ward
Grant Edwards wrote: Why not use termcap/terminfo? That's a good idea, but I'd have to wrap the c library myself, wouldn't I? Also, what happens when a user has an incorrect TERM setting (I've run into this before) I don't want to reimpliment all the nice speed optimizations that the curses

Re: Replacing curses (Was: Re: Problem with curses and UTF-8)

2006-02-08 Thread Grant Edwards
On 2006-02-08, Ian Ward [EMAIL PROTECTED] wrote: Grant Edwards wrote: Why not use termcap/terminfo? That's a good idea, but I'd have to wrap the c library myself, wouldn't I? Probably. I don't remember seeing a python module for them. Also, what happens when a user has an incorrect TERM

Re: Replacing curses (Was: Re: Problem with curses and UTF-8)

2006-02-08 Thread Ian Ward
Grant Edwards wrote: Depending on what you're tring to do, slang might be an option, I've looked at newt and snack, but all I really need is: - a way to position the cursor at (0,0) - a way to hide and show the cursor - a way to detect when the terminal is resized - a way to query the terminal

Re: Replacing curses (Was: Re: Problem with curses and UTF-8)

2006-02-08 Thread Jean-Paul Calderone
On Wed, 08 Feb 2006 15:10:26 -0500, Ian Ward [EMAIL PROTECTED] wrote: Grant Edwards wrote: Depending on what you're tring to do, slang might be an option, I've looked at newt and snack, but all I really need is: - a way to position the cursor at (0,0) - a way to hide and show the cursor - a way

Re: Replacing curses (Was: Re: Problem with curses and UTF-8)

2006-02-08 Thread Ian Ward
Jean-Paul Calderone wrote: I've looked at newt and snack, but all I really need is: - a way to position the cursor at (0,0) - a way to hide and show the cursor - a way to detect when the terminal is resized - a way to query the terminal size You might be interested in Twisted Conch's

Replacing curses (Was: Re: Problem with curses and UTF-8)

2006-02-07 Thread Ian Ward
Martin v. Löwis wrote: Ian Ward wrote: Any Ideas? I think there is one or more ncurses bugs somewhere. The ncurses documentation suggests that you should link with ncurses_w instead of linking with ncurses - you might try that as well. If it helps, please do report back. Ultimately,