Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pokemonterminal/scripter.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init_wallpaper_provider():

def clear_terminal():
# clear any updates to the terminal window's title bar
sys.stdout.write("\x1b]2;\x07")
sys.stdout.write("\033]2;\007")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI this is octal, not decimal.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol true 😛 I can amend the commit message if that's something we really care about

__init_terminal_provider()
TERMINAL_PROVIDER.clear()

Expand All @@ -86,7 +86,7 @@ def change_terminal(image_file_path, title, background_process):
if background_process:
subprocess.run(['echo','-n', '\033]2;{}\007'.format(title)])
else:
sys.stdout.write("\x1b]2;{}\x07".format(title))
sys.stdout.write("\033]2;{}\007".format(title))
__init_terminal_provider()
TERMINAL_PROVIDER.change_terminal(image_file_path)

Expand Down