Changeset - 8435e3ee1ec2
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 12 years ago 2013-06-12 05:01:02
drewp@bigasterisk.com
put program name in terminal title
Ignore-this: dc97077b95fe4d23527c1ea08e3fe7c1
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
bin/run_local.py
Show inline comments
 
@@ -30,4 +30,8 @@ class CSH(coloredlogs.ColoredStreamHandl
 
log.addHandler(CSH(show_hostname=False, show_name=True))
 

	
 

	
 
def setTerminalTitle(s):
 
    if os.environ.get('TERM', '') in ['xterm']:
 
        print "\033]0;%s\007" % s # not escaped/protected correctly
 

	
 
setTerminalTitle(sys.argv[0])
0 comments (0 inline, 0 general)