xterm: DECSCUSR cursor shapes; block cursor shows the character

CSI Ps SP q is stored as Terminal.cursorShape / cursorShapeBlinks (Ps 0
returns to the view's configured cursorType; RIS clears it) and reported
by DECRQSS " q". The painter draws the requested shape. A focused block
cursor now redraws the character under it in the background colour
instead of hiding it, spans both columns of a wide character, and the
underline and bar cursors are drawn in the cursor's cell (they were drawn
at the top of the terminal).

Blinking is stored but not animated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 23:30:10 +00:00
parent 31d00e057c
commit bbb2d112ed
8 changed files with 288 additions and 14 deletions
+5
View File
@@ -471,6 +471,11 @@ class _TerminalDebuggerHandler implements EscapeHandler {
onCommand('setCursorUnderline');
}
@override
void setCursorShape(int shape) {
onCommand('setCursorShape $shape');
}
@override
void resetTerminal() {
onCommand('resetTerminal');