fix: osc8-link doubled backslashes in format string
The osc8-link implementation and its test both had doubled backslashes (\\ -> \\) in their format strings, producing two literal backslashes at runtime instead of the single backslash needed for the OSC 8 string terminator (ST = ESC \). Fix: change \\ to \\ in both the implementation and test format strings. The tangled .lisp files now have correct escaped backslashes (\) producing one backslash in the runtime string. Additionally clean up a patch artifact that left a stray backslash before the opening quote.
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
(test osc8-escape
|
||||
"OSC 8 hyperlink escape wraps text"
|
||||
(is (equal (cl-tty.backend::osc8-link "http://example.com" "click here")
|
||||
(format nil "~C]8;;http://example.com~C\\click here~C]8;;~C\"
|
||||
(format nil "~C]8;;http://example.com~C\click here~C]8;;~C\"
|
||||
#\Esc #\Esc #\Esc #\Esc))))
|
||||
|
||||
(test hex-color-parsing
|
||||
|
||||
Reference in New Issue
Block a user