Skip to content

Commit 9b85767

Browse files
committed
turn on windows heuristic
1 parent 546560d commit 9b85767

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python_files/pythonrc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,13 @@ def __str__(self):
6363
command_executed="\x1b]633;C\x07",
6464
)
6565
else:
66-
result = "{command_finished}{prompt_started}{prompt}{command_start}{command_executed}".format(
66+
result = "{command_finished}{prompt_started}{prompt}{command_start}{command_executed}{windows_true}".format(
6767
command_finished="\x1b]633;D;" + str(exit_code) + "\x07",
6868
prompt_started="\x1b]633;A\x07",
6969
prompt=original_ps1,
7070
command_start="\x1b]633;B\x07",
7171
command_executed="\x1b]633;C\x07",
72+
windows_true="\x1b]633;P;IsWindows=true\x07",
7273
)
7374

7475
# 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)}"

0 commit comments

Comments
 (0)