From: Eric S. Raymond Date: Tue, 10 Oct 2006 07:22:57 +0000 (+0000) Subject: Don't try to do color initialization in Python yet, direct C X-Git-Tag: 2.0~100 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=7d2fa7a973f6e8a8927b36c87c172c91ec4b6ed5;p=super-star-trek.git Don't try to do color initialization in Python yet, direct C translation of that code doesn't work. --- diff --git a/src/sst.py b/src/sst.py index 3c10502..4c36525 100644 --- a/src/sst.py +++ b/src/sst.py @@ -3353,19 +3353,9 @@ def iostart(): else: stdscr = curses.initscr() stdscr.keypad(True) - #saveterm() curses.nonl() curses.cbreak() curses.start_color() - curses.init_pair(curses.COLOR_BLACK, curses.COLOR_BLACK, curses.COLOR_BLACK) - curses.init_pair(curses.COLOR_GREEN, curses.COLOR_GREEN, curses.COLOR_BLACK) - curses.init_pair(curses.COLOR_RED, curses.COLOR_RED, curses.COLOR_BLACK) - curses.init_pair(curses.COLOR_CYAN, curses.COLOR_CYAN, curses.COLOR_BLACK) - curses.init_pair(curses.COLOR_WHITE, curses.COLOR_WHITE, curses.COLOR_BLACK) - curses.init_pair(curses.COLOR_MAGENTA, curses.COLOR_MAGENTA, curses.COLOR_BLACK) - curses.init_pair(curses.COLOR_BLUE, curses.COLOR_BLUE, curses.COLOR_BLACK) - curses.init_pair(curses.COLOR_YELLOW, curses.COLOR_YELLOW, curses.COLOR_BLACK) - #noecho() global fullscreen_window, srscan_window, report_window, status_window global lrscan_window, message_window, prompt_window (rows, columns) = stdscr.getmaxyx()