diff --git a/crates/nu-command/src/commands/platform/ansi/command.rs b/crates/nu-command/src/commands/platform/ansi/command.rs index a5255e593c..3c1e2ceef8 100644 --- a/crates/nu-command/src/commands/platform/ansi/command.rs +++ b/crates/nu-command/src/commands/platform/ansi/command.rs @@ -328,6 +328,8 @@ pub fn str_to_ansi(s: &str) -> Option { "csi" | "escape" | "escape_left" => Some("\x1b[".to_string()), // OSC escape (Operating system command) "osc" | "escape_right" => Some("\x1b]".to_string()), + // OSC string terminator + "string_terminator" | "st" | "str_term" => Some("\x1b\\".to_string()), // Ansi Rgb - Needs to be 32;2;r;g;b or 48;2;r;g;b // assuming the rgb will be passed via command and no here