curses and python (linux, debian)

Michael Hudson mwh at python.net
Tue May 4 11:40:33 EDT 2004


Guido <no.email at please.invalid> writes:

> Hello
> 
> I'm new to python and i'm trying to write a script that shows a menu.
> 
> Now, I have some troubles with curses.setsyx()
> 
> I do:
> 
> import curses
> 
> curses.setsyx(2, 20)
> curses.putp("TEST TITLE")
> curses.setsyx(25, 35)
> curses.putp("TEST CENTER")
> curses.setsyx(12, 35)
> curses.putp("TEST CENTER")
> 
> but it just prints all the string after each other at the first
> lines..
> 
> can anybody help me please?

Don't you call initscr() first?

Cheers,
mwh

-- 
  ZAPHOD:  OK, so ten out of ten for style, but minus several million
           for good thinking, eh?
                    -- The Hitch-Hikers Guide to the Galaxy, Episode 2



More information about the Python-list mailing list