curses won't refresh screen

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Casey Bralla

    #1

    curses won't refresh screen

    For some reason, I can't get curses to refresh the screen. Can someone
    offer a suggestion to try to debug this?

    Here is my python code snippet:

    stdscr=curses.i nitscr()
    curses.noecho()
    curses.cbreak()
    stdscr.keypad(1 )
    global screen
    screen = stdscr.subwin(2 3, 79, 0, 0)
    screen.border()

    while 1 == 1:
    screen.addstr(5 ,5, str(time.localt ime()))
    screen.refresh( )



    When run this, the local time is displayed ONCE, and then never changes.
    Why isn't the screen.refresh( ) command refreshing the display?

    I'm running a terminal session from within KDE, but I didn't think this
    would matter.

    Any ideas to suggest?
    --
    Casey Bralla
    Chief Nerd in Residence
    The NerdWorld Organisation

Working...