xterm: answer OSC 10/11/12 queries; OSC 8 links, OSC 52 and OSC 7
OSC 10/11/12 ; ? is answered with rgb:rrrr/gggg/bbbb from the view's theme (RenderTerminal reports it through Terminal.setReportedColors), terminated like the query (BEL or ST). OSC 8 hyperlinks are stored on the cells (a 16-bit id in the attributes; Terminal.hyperlinkAt), survive SGR resets and end with an empty URI. OSC 52 sets reach Terminal.onClipboardSet decoded; clipboard reads are not supported. OSC 7 reaches onWorkingDirectoryChange. OSC bodies keep their semicolons (titles, URIs), and an OSC cut short by another escape no longer swallows that escape's first byte. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -471,6 +471,26 @@ class _TerminalDebuggerHandler implements EscapeHandler {
|
||||
onCommand('setCursorUnderline');
|
||||
}
|
||||
|
||||
@override
|
||||
void setWorkingDirectory(String uri) {
|
||||
onCommand('setWorkingDirectory $uri');
|
||||
}
|
||||
|
||||
@override
|
||||
void setHyperlink(String params, String uri) {
|
||||
onCommand('setHyperlink $params $uri');
|
||||
}
|
||||
|
||||
@override
|
||||
void queryDynamicColor(int which, {required bool bel}) {
|
||||
onCommand('queryDynamicColor $which');
|
||||
}
|
||||
|
||||
@override
|
||||
void setClipboard(String selection, String data) {
|
||||
onCommand('setClipboard $selection');
|
||||
}
|
||||
|
||||
@override
|
||||
void setCursorShape(int shape) {
|
||||
onCommand('setCursorShape $shape');
|
||||
|
||||
Reference in New Issue
Block a user