Minor fixes to curses interface.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 10 Oct 2006 17:46:03 +0000 (17:46 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 10 Oct 2006 17:46:03 +0000 (17:46 +0000)
src/sst.py

index d3047cd7dd8b2d2e2e134ea02769505cc4f9f232..38de3bd08a2b100388390386e19d2071fbd663cc 100644 (file)
@@ -3357,7 +3357,7 @@ def pause_game():
     if game.options & OPTION_CURSES:
         drawmaps(0)
         setwnd(prompt_window)
-        prompt_window.wclear()
+        prompt_window.clear()
         prompt_window.addstr(prompt)
         prompt_window.getstr()
         prompt_window.clear()
@@ -3452,8 +3452,8 @@ def setwnd(wnd):
 def clreol():
     "Clear to end of line -- can be a no-op in tty mode" 
     if game.options & OPTION_CURSES:
-        wclrtoeol(curwnd)
-        wrefresh(curwnd)
+        curwnd.clrtoeol()
+        curwnd.refresh()
 
 def clrscr():
     "Clear screen -- can be a no-op in tty mode."