Commit 0e936a9
committed
net: strip OSC escape sequences from VM console output
Fedora 43 (systemd 256+) emits OSC 8003 session-tracking escape
sequences in the terminal. The existing regex in vm_console_run_commands
only stripped CSI sequences (ESC[…), leaving OSC sequences (ESC]…) in
the parsed output. This broke any caller that parses console output,
e.g. json.loads() in ip_specification tests.
Extend the regex to also strip OSC sequences terminated by BEL or ST,
per ECMA-48 specification.
Signed-off-by: Sergei Volkov <sevolkov@redhat.com>
Assisted-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 2c5ec8d commit 0e936a9
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1495 | 1495 | | |
1496 | 1496 | | |
1497 | 1497 | | |
1498 | | - | |
1499 | | - | |
| 1498 | + | |
| 1499 | + | |
1500 | 1500 | | |
1501 | 1501 | | |
1502 | 1502 | | |
| |||
0 commit comments