From 69407c8e0b236ca95f5d8f352099bcb8c4ef7cb3 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 26 Jul 2013 18:58:06 +0200 Subject: add support for the rat in xterm-compatible terminals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/featherweight.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/featherweight.py') 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 = '') -- cgit v1.2.3-70-g09d2