Make life with the curses terminal a bit more bearable

This commit is contained in:
Andreas Kloeckner 2013-11-08 11:32:32 -06:00
parent 1b16552829
commit 4fc78f7457
2 changed files with 7 additions and 8 deletions

View File

@ -1531,8 +1531,7 @@ class DebuggerUI(FrameVarInfoKeeper):
@staticmethod
def setup_palette(screen):
may_use_fancy_formats = isinstance(screen, RawScreen) and \
not hasattr(urwid.escape, "_fg_attr_xterm")
may_use_fancy_formats = not hasattr(urwid.escape, "_fg_attr_xterm")
from pudb.theme import get_palette
screen.register_palette(

View File

@ -90,7 +90,7 @@ def get_palette(may_use_fancy_formats, theme="classic"):
("dialog title", add_setting("white", "bold"), "dark cyan"),
# highlighting
("source", "yellow", "dark blue"),
("source", "yellow,bold", "dark blue"),
("focused source", "black", "dark green"),
("highlighted source", "black", "dark magenta"),
("current source", "black", "dark cyan"),
@ -100,12 +100,12 @@ def get_palette(may_use_fancy_formats, theme="classic"):
("line number", "light gray", "dark blue"),
("keyword", add_setting("white", "bold"), "dark blue"),
("name", "light cyan", "dark blue"),
("literal", "light magenta", "dark blue"),
("literal", "light magenta, bold", "dark blue"),
("string", "light magenta", "dark blue"),
("doublestring", "light magenta", "dark blue"),
("singlestring", "light magenta", "dark blue"),
("docstring", "light magenta", "dark blue"),
("string", "light magenta,bold", "dark blue"),
("doublestring", "light magenta,bold", "dark blue"),
("singlestring", "light magenta,bold", "dark blue"),
("docstring", "light magenta,bold", "dark blue"),
("punctuation", "light gray", "dark blue"),
("comment", "light gray", "dark blue"),