From: Christian Heller Date: Wed, 10 Apr 2019 00:07:00 +0000 (+0200) Subject: Invert color for examiner cursor. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/static/%7B%7Bdb.prefix%7D%7D/todo?a=commitdiff_plain;h=1ed87907733a1d3f3646c4b1a94fb17e3cff500f;p=plomrogue2-experiments Invert color for examiner cursor. --- diff --git a/new/example_client.py b/new/example_client.py index 44b0993..5fc3063 100755 --- a/new/example_client.py +++ b/new/example_client.py @@ -412,6 +412,8 @@ class MapWidget(Widget): chars_with_attrs += [(c, curses.color_pair(2))] elif c in {'x', 'X', '#'}: chars_with_attrs += [(c, curses.color_pair(3))] + elif c == '?': + chars_with_attrs += [(c, curses.color_pair(5))] else: chars_with_attrs += [c] return chars_with_attrs @@ -584,6 +586,7 @@ class TUI: curses.init_pair(2, curses.COLOR_BLACK, curses.COLOR_GREEN) curses.init_pair(3, curses.COLOR_BLACK, curses.COLOR_BLUE) curses.init_pair(4, curses.COLOR_BLACK, curses.COLOR_YELLOW) + curses.init_pair(5, curses.COLOR_BLACK, curses.COLOR_WHITE) # Basic curses initialization work. setup_screen(stdscr)