Curses in colour?
mwh at python.net
Mon May 28 14:47:55 CEST 2001
mrchameleon at hotmail.com (Chris Reay) writes:
> Michael Hudson <mwh at python.net> wrote in message news:<m3r8xar86v.fsf at atrus.jesus.cam.ac.uk>...
> > mrchameleon at hotmail.com (Chris Reay) writes:
> > snip ...
> > > highlighting, for example. However my curses application won't, as
> > > this function, which returns 0 shows:
> > ... snip
> > Hmm, it returns 0 for me too - but color still works. Does it for
> > you?
> > Cheers,
> > M.
> No it doesn't. Strange characters are displayed (in mono) if I try to.
> Would you be able to give me an exact example of how you display a
> colour-paired string in curses? I'd be grateful.
This works for me:
win = curses.newwin(10,0,0,0)
while win.getch() == -1:
... I'm far from being a curses expert, though.
All programs evolve until they can send email. -- Richard Letts
Except Microsoft Exchange. -- Art
More information about the Python-list