[jhbuild/jhdebuild: 509/536] [frontends] Teach terminal frontend about screen
- From: John Carr <johncarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [jhbuild/jhdebuild: 509/536] [frontends] Teach terminal frontend about screen
- Date: Sun, 17 May 2009 14:42:48 -0400 (EDT)
commit 537e04eeac4dbd1d12a7ed5a1168cba1c96c8de6
Author: Frederic Peters <fpeters 0d be>
Date: Sun May 17 13:37:08 2009 +0100
[frontends] Teach terminal frontend about screen
---
jhbuild/frontends/terminal.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/jhbuild/frontends/terminal.py b/jhbuild/frontends/terminal.py
index c689415..0d76228 100644
--- a/jhbuild/frontends/terminal.py
+++ b/jhbuild/frontends/terminal.py
@@ -32,6 +32,7 @@ from jhbuild.errors import CommandError
term = os.environ.get('TERM', '')
is_xterm = term.find('xterm') >= 0 or term == 'rxvt'
+is_screen = (term == 'screen')
del term
try: t_bold = cmds.get_output(['tput', 'bold'])
@@ -97,6 +98,8 @@ class TerminalBuildScript(buildscript.BuildScript):
if is_xterm:
sys.stdout.write('\033]0;jhbuild:%s%s\007' % (uencode(msg), progress))
sys.stdout.flush()
+ elif is_screen:
+ print '\033kjhdebuild: %s%s\033\\' % (msg, progress)
self.trayicon.set_tooltip('%s%s' % (msg, progress))
def set_action(self, action, module, module_num=-1, action_target=None):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]