From 4fc78f74574acf7796ed6fc479da95dbccd3ad73 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Fri, 8 Nov 2013 11:32:32 -0600 Subject: [PATCH] Make life with the curses terminal a bit more bearable --- pudb/debugger.py | 3 +-- pudb/theme.py | 12 ++++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/pudb/debugger.py b/pudb/debugger.py index 4d9c2d7..302de06 100644 --- a/pudb/debugger.py +++ b/pudb/debugger.py @@ -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( diff --git a/pudb/theme.py b/pudb/theme.py index 605ebed..81ed976 100644 --- a/pudb/theme.py +++ b/pudb/theme.py @@ -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"),