-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FinalTerm escape sequences are stripped from prompt filter #457
Comments
If they're stripped, then it means Clink doesn't recognize the terminal program, and was forced to fall back to its own built-in terminal emulator. See the |
I was testing it with Windows Terminal Dev (microsoft/terminal@48eee4d, build from CI) with |
I see, yes. I'll change how it parses OSC codes so it doesn't assume a single digit anymore. Also, the sample Lua script has problems -- it is important to remove the
The |
Thank you and thanks for the remarks regarding |
It was simpler than I anticipated: unrecognized OSC codes were accidentally reported as though they were recognized. But the code that tried to handled recognized OSC codes didn't know what to do with them, so they got accidentally stripped. The fix is simply to accurately report whether OSC codes are recognized. |
I'm trying to add shell integration using FinalTerm escape sequences following the
OSC 133 ; <something> ST
format, but all these sequences from filter are removed before printing to the terminal.ecma48_code::decode_osc
decodes these sequences as{ .command = '1', .subcommand = '0', .visible = false }
and all!visible
OSC codes with thecommand
property between 0 and 2 (inclusive) are treated as set console title commands and skipped from the output:clink/clink/terminal/src/ecma48_iter.cpp
Lines 560 to 571 in 17b5a3e
A simple example that demonstrates the problem:
The text was updated successfully, but these errors were encountered: