From 047adb1936c39fa55ac00aa5c6e39d92e12e8351 Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Tue, 14 Jun 2016 00:26:49 -0700 Subject: [PATCH] Flush sys.stdout after writing the title. #221. --- rtv/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtv/__main__.py b/rtv/__main__.py index e19bb15..490f427 100644 --- a/rtv/__main__.py +++ b/rtv/__main__.py @@ -38,6 +38,7 @@ def main(): # Set the terminal title title = 'rtv {0}'.format(__version__) sys.stdout.write('\x1b]2;{0}\x07'.format(title)) + sys.stdout.flush() args = Config.get_args() fargs, bindings = Config.get_file(args.get('config')) @@ -129,4 +130,4 @@ def main(): # Explicitly close file descriptors opened by Tornado's IOLoop tornado.ioloop.IOLoop.current().close(all_fds=True) -sys.exit(main()) \ No newline at end of file +sys.exit(main())