fixed title for windows

This commit is contained in:
Tobin
2015-04-02 12:43:02 -05:00
parent 943bc34fbf
commit 8f14be2797

View File

@@ -71,10 +71,10 @@ def main():
# set the terminal title
title = 'rtv {0}'.format(__version__)
try:
if os.name == 'nt':
os.system('title {0}'.format(title))
else:
sys.stdout.write("\x1b]2;{0}\x07".format(title))
except:
os.system(title)
# Fill in empty arguments with config file values. Paramaters explicitly
# typed on the command line will take priority over config file params.