fix ansi --osc parameter adding extra semi-colon (#7113)
This commit is contained in:
parent
649c8319e6
commit
35f9299fc6
|
@ -381,8 +381,10 @@ Format: #
|
||||||
format!("\x1b[{}", code_string)
|
format!("\x1b[{}", code_string)
|
||||||
} else if osc && param_is_valid_string {
|
} else if osc && param_is_valid_string {
|
||||||
// Operating system command aka osc ESC ] <- note the right brace, not left brace for osc
|
// Operating system command aka osc ESC ] <- note the right brace, not left brace for osc
|
||||||
// OCS's need to end with a bell '\x07' char
|
// OCS's need to end with either:
|
||||||
format!("\x1b]{};", code_string)
|
// bel '\x07' char
|
||||||
|
// string terminator aka st '\\' char
|
||||||
|
format!("\x1b]{}", code_string)
|
||||||
} else if param_is_valid_string {
|
} else if param_is_valid_string {
|
||||||
// parse hex colors like #00FF00
|
// parse hex colors like #00FF00
|
||||||
if code_string.starts_with('#') {
|
if code_string.starts_with('#') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user