diff options
| author | Mattias Andrée <maandree@operamail.com> | 2013-07-26 18:58:06 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@operamail.com> | 2013-07-26 18:58:06 +0200 |
| commit | 69407c8e0b236ca95f5d8f352099bcb8c4ef7cb3 (patch) | |
| tree | ca4716ac0404dab3576e5ccefbb6170d982b532f /src/featherweight.py | |
| parent | misc (diff) | |
| download | pytagomacs-69407c8e0b236ca95f5d8f352099bcb8c4ef7cb3.tar.gz pytagomacs-69407c8e0b236ca95f5d8f352099bcb8c4ef7cb3.tar.bz2 pytagomacs-69407c8e0b236ca95f5d8f352099bcb8c4ef7cb3.tar.xz | |
add support for the rat in xterm-compatible terminals
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/featherweight.py')
| -rwxr-xr-x | src/featherweight.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/featherweight.py b/src/featherweight.py index d5e1d47..6fe219e 100755 --- a/src/featherweight.py +++ b/src/featherweight.py @@ -48,7 +48,7 @@ with touch('%s/feeds' % root) as feeds_flock: unflock(feeds_flock) -print('\033[?1049h\033[?25l', end = '') +print('\033[?1049h\033[?25l\033[?9h', end = '') try: tree = Tree('My Feeds', feeds) @@ -62,9 +62,10 @@ try: elif action == 'open': pass -except: +except Exception as err: + raise err pass finally: Popen(['stty', old_stty], stdout = PIPE, stderr = PIPE).communicate() - print('\033[?25h\033[?1049l', end = '') + print('\033[?9l\033[?25h\033[?1049l', end = '') |
