Merge pull request #229 from michael-lazar/flush_title

Flush sys.stdout after writing the title.
This commit is contained in:
Michael Lazar
2016-06-14 01:00:25 -07:00
committed by GitHub

View File

@@ -38,6 +38,7 @@ def main():
# Set the terminal title # Set the terminal title
title = 'rtv {0}'.format(__version__) title = 'rtv {0}'.format(__version__)
sys.stdout.write('\x1b]2;{0}\x07'.format(title)) sys.stdout.write('\x1b]2;{0}\x07'.format(title))
sys.stdout.flush()
args = Config.get_args() args = Config.get_args()
fargs, bindings = Config.get_file(args.get('config')) fargs, bindings = Config.get_file(args.get('config'))