Re: Python and (n)curses

2007-06-21 Thread peter
> You could write your own little console interface, tailored to > your needs, which is implemented using curses on Unix, and the > effbot's 'console' on Windows. Indeed, that's basically what I have done. Just can't help thinking how much simpler (and so less error prone) it would have been had

Re: Python and (n)curses

2007-06-20 Thread Neil Cerutti
On 2007-06-20, Jorgen Grahn <[EMAIL PROTECTED]> wrote: > On Wed, 20 Jun 2007 00:51:09 -0700, peter <[EMAIL PROTECTED]> wrote: >> >>> > For me, introducing similar commands in Python would be by far the >>> > biggest single improvement that could be made to the language. >> >>> If it should be don

Re: Python and (n)curses

2007-06-20 Thread Jorgen Grahn
On Wed, 20 Jun 2007 00:51:09 -0700, peter <[EMAIL PROTECTED]> wrote: > >> > For me, introducing similar commands in Python would be by far the >> > biggest single improvement that could be made to the language. > >> If it should be done, it should be done as a compatible subset of >> curses, IMHO

Re: Python and (n)curses

2007-06-20 Thread Evan Klitzke
On 6/20/07, peter <[EMAIL PROTECTED]> wrote: > > > > For me, introducing similar commands in Python would be by far the > > > biggest single improvement that could be made to the language. > > > If it should be done, it should be done as a compatible subset of > > curses, IMHO. It has such a long

Re: Python and (n)curses

2007-06-20 Thread peter
> > For me, introducing similar commands in Python would be by far the biggest > > single improvement that could be made to the language. > If it should be done, it should be done as a compatible subset of > curses, IMHO. It has such a long history as the standard "GUI toolkit" But curses does

Re: Python and (n)curses

2007-06-19 Thread Ben Finney
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > On Jun 19, 3:27 pm, Ben Finney <[EMAIL PROTECTED]> > wrote: > > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > > Just to be more precise: curses is not a requirement, a > > > multi-platform console library with a single API is. So are there >

Re: Python and (n)curses

2007-06-19 Thread Bjoern Schliessmann
[EMAIL PROTECTED] wrote: > On Jun 19, 3:27 pm, Ben Finney >> And as "peter" mentions, it awaits only someone doing that work >> and contributing it to Python. Those who can't see why it would >> be hard are welcome to do so. > > The classic answer. Yes, because of the classic problem with unsala

Re: Python and (n)curses

2007-06-19 Thread [EMAIL PROTECTED]
On Jun 19, 3:27 pm, Ben Finney <[EMAIL PROTECTED]> wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > Just to be more precise: curses is not a requirement, a > > multi-platform console library with a single API is. So are there > > alternatives to curses? Python-only or not. > You wouldn

Re: Python and (n)curses

2007-06-19 Thread Jorgen Grahn
On Tue, 19 Jun 2007 02:43:09 -0700, peter <[EMAIL PROTECTED]> wrote: > I've said it before and I'll say it again. Why does Python have no > platform neutral commands for simple screen manipulation? yabasic (a > 'hobby' type language - http://www.yabasic.de/) has commands clear > screen, inkey$ a

Re: Python and (n)curses

2007-06-19 Thread Ben Finney
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > Just to be more precise: curses is not a requirement, a > multi-platform console library with a single API is. So are there > alternatives to curses? Python-only or not. > > And as "peter" mentions, Python _could_ have such a library, > abstracting

Re: Python and (n)curses

2007-06-19 Thread [EMAIL PROTECTED]
On Jun 19, 9:04 am, Ben Finney <[EMAIL PROTECTED]> wrote: > > More precisely, curses doesn't work natively on Windows, regardless of > whether Python is involved. > True. But then: are there other multi-platform console libraries out there? I want to code to a single API. > As with many "how do I

Re: Python and (n)curses

2007-06-19 Thread [EMAIL PROTECTED]
On Jun 19, 2:17 am, Josiah Carlson <[EMAIL PROTECTED]> wrote: > > This link offers a series of links for console > IO...http://mail.python.org/pipermail/python-list/2005-January/303984.html > Thanks. > Among them is a link to the 'wcurses' module that has been relocated > here:http://adamv.com/d

Re: Python and (n)curses

2007-06-19 Thread peter
I've said it before and I'll say it again. Why does Python have no platform neutral commands for simple screen manipulation? yabasic (a 'hobby' type language - http://www.yabasic.de/) has commands clear screen, inkey$ and putscreen$ which perform the basic functions of clearing the screen, readi

Re: Python and (n)curses

2007-06-19 Thread Ben Finney
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > The obvious choice, I thought, was ncurses. But as far as I can > tell, it is not available for Python on Windows? More precisely, curses doesn't work natively on Windows, regardless of whether Python is involved. As with many "how do I get Unix

Re: Python and (n)curses

2007-06-18 Thread Josiah Carlson
[EMAIL PROTECTED] wrote: > I need to develop a cross-platform text-mode application. I would like > to do it in Python and I would like to use a mature text-mode library > for the UI stuff. > > The obvious choice, I thought, was ncurses. But as far as I can tell, > it is not available for Python o