From 35f9299fc6d0541303ad87884b94aae9d9e9d676 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Sat, 12 Nov 2022 16:27:58 -0600 Subject: [PATCH] fix ansi --osc parameter adding extra semi-colon (#7113) --- crates/nu-command/src/platform/ansi/ansi_.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/nu-command/src/platform/ansi/ansi_.rs b/crates/nu-command/src/platform/ansi/ansi_.rs index f20e62027e..a4288ddfcc 100644 --- a/crates/nu-command/src/platform/ansi/ansi_.rs +++ b/crates/nu-command/src/platform/ansi/ansi_.rs @@ -381,8 +381,10 @@ Format: # format!("\x1b[{}", code_string) } else if osc && param_is_valid_string { // 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 - format!("\x1b]{};", code_string) + // OCS's need to end with either: + // bel '\x07' char + // string terminator aka st '\\' char + format!("\x1b]{}", code_string) } else if param_is_valid_string { // parse hex colors like #00FF00 if code_string.starts_with('#') {