diff --git a/rtv/__main__.py b/rtv/__main__.py index cef78c1..44b5bd8 100644 --- a/rtv/__main__.py +++ b/rtv/__main__.py @@ -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.