add ansi osc string terminator (#3712)

This commit is contained in:
Darren Schroeder 2021-06-30 12:01:23 -05:00 committed by GitHub
parent 08306f0db8
commit 333335c366
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -328,6 +328,8 @@ pub fn str_to_ansi(s: &str) -> Option<String> {
"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