Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow raw mode on rxvt terminals
My custom 256 color theme was broken since v2013.5, (more precisely commit afe202c), because I use rxvt instead of xterm.

This fixes it.
  • Loading branch information
flupke committed Feb 4, 2015
1 parent 3221878 commit 86c0a9c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pudb/debugger.py
Expand Up @@ -394,7 +394,11 @@ def _runscript(self, filename):
or (
CONFIG["display"] == "auto"
and
not os.environ.get("TERM", "").startswith("xterm")))
not (
os.environ.get("TERM", "").startswith("xterm")
or
os.environ.get("TERM", "").startswith("rxvt")

This comment has been minimized.

Copy link
@bukzor

bukzor Jun 12, 2016

Contributor

str.startswith can take a tuple. This could be more simple, written as:

os.get('TERM', '').startswith(('xterm', 'rxvt'))
)))

from urwid.raw_display import Screen as RawScreen
if want_curses_display:
Expand Down

0 comments on commit 86c0a9c

Please sign in to comment.