Flush sys.stdout after writing the title. #221.
This commit is contained in:
@@ -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())
|
||||
sys.exit(main())
|
||||
|
||||
Reference in New Issue
Block a user