From: Eric S. Raymond Date: Tue, 10 Oct 2006 17:46:03 +0000 (+0000) Subject: Minor fixes to curses interface. X-Git-Tag: 2.0~87 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=e60212adbf91269814deef3ece92000586115f7c;p=super-star-trek.git Minor fixes to curses interface. --- diff --git a/src/sst.py b/src/sst.py index d3047cd..38de3bd 100644 --- a/src/sst.py +++ b/src/sst.py @@ -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."