File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,13 +53,13 @@ def __str__(self):
53
53
result = ""
54
54
# For non-windows allow recent_command history.
55
55
if sys .platform != "win32" :
56
- result = "{command_line}{command_finished}{prompt_started}{prompt}{command_start}{command_executed}" .format (
56
+ result = "{command_executed}{command_line}{command_finished}{prompt_started}{prompt}{command_start}" .format (
57
+ command_executed = "\x1b ]633;C\x07 " ,
57
58
command_line = "\x1b ]633;E;" + str (get_last_command ()) + "\x07 " ,
58
59
command_finished = "\x1b ]633;D;" + str (exit_code ) + "\x07 " ,
59
60
prompt_started = "\x1b ]633;A\x07 " ,
60
61
prompt = original_ps1 ,
61
62
command_start = "\x1b ]633;B\x07 " ,
62
- command_executed = "\x1b ]633;C\x07 " ,
63
63
)
64
64
else :
65
65
result = "{command_finished}{prompt_started}{prompt}{command_start}{command_executed}" .format (
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ def test_decoration_success():
17
17
if sys .platform != "win32" and (not is_wsl ):
18
18
assert (
19
19
result
20
- == "\x1b ]633;E;None\x07 \x1b ]633;D;0\x07 \x1b ]633;A\x07 >>> \x1b ]633;B\x07 \x1b ]633;C \x07 "
20
+ == "\x1b ]633;C \x07 \x1b ]633; E;None\x07 \x1b ]633;D;0\x07 \x1b ]633;A\x07 >>> \x1b ]633;B\x07 "
21
21
)
22
22
else :
23
23
pass
@@ -32,7 +32,7 @@ def test_decoration_failure():
32
32
if sys .platform != "win32" and (not is_wsl ):
33
33
assert (
34
34
result
35
- == "\x1b ]633;E;None\x07 \x1b ]633;D;1\x07 \x1b ]633;A\x07 >>> \x1b ]633;B\x07 \x1b ]633;C \x07 "
35
+ == "\x1b ]633;C \x07 \x1b ]633; E;None\x07 \x1b ]633;D;1\x07 \x1b ]633;A\x07 >>> \x1b ]633;B\x07 "
36
36
)
37
37
else :
38
38
pass
You can’t perform that action at this time.
0 commit comments