Skip to content

Commit

Permalink
flush after title update (#2977)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhdasding authored and solderzzc committed Aug 8, 2016
1 parent 0855dac commit a1733b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pokemongo_bot/cell_workers/update_title_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ def _update_title(self, title, platform):
"""
if platform == "linux" or platform == "linux2" or platform == "cygwin":
stdout.write("\x1b]2;{}\x07".format(title))
stdout.flush()
elif platform == "darwin":
stdout.write("\033]0;{}\007".format(title))
stdout.flush()
elif platform == "win32":
ctypes.windll.kernel32.SetConsoleTitleA(title)
else:
Expand Down

0 comments on commit a1733b9

Please sign in to comment.