Skip to content

Commit

Permalink
opt in for windows heuristics
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonykim1 committed Jan 12, 2024
1 parent 67c2923 commit 4c31a2e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pythonFiles/pythonrc.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,15 @@ def __str__(self):
# command_start="\x1b]633;B\x07",
# command_executed="\x1b]633;C\x07",
# )
result = f"{chr(27)}]633;D;{exit_code}{chr(7)}{chr(27)}]633;A{chr(7)}{original_ps1}{chr(27)}]633;B{chr(7)}{chr(27)}]633;C{chr(7)}"
result = "{command_finished}{prompt_started}{prompt}{command_start}{command_executed}{is_windows}".format(
command_finished="\x1b]633;D;" + str(exit_code) + "\x07",
prompt_started="\x1b]633;A\x07",
prompt=original_ps1,
command_start="\x1b]633;B\x07",
command_executed="\x1b]633;C\x07",
is_windows="\x1b]633;P;IsWindows=True\x07",
)
# result = f"{chr(27)}]633;D;{exit_code}{chr(7)}{chr(27)}]633;A{chr(7)}{original_ps1}{chr(27)}]633;B{chr(7)}{chr(27)}]633;C{chr(7)}"

return result

Expand Down

0 comments on commit 4c31a2e

Please sign in to comment.