- Wheel buttons were encoded as 68/69 (64 + 4/5, i.e. Shift + wheel down/
wheel right); they are 64 up and 65 down.
- Wheel, click and drag positions use the view's own screen cell: the
wheel used the window position, and clicks used the buffer row
(counting scrollback) instead of the screen row. Default encoding sent
the row one too high.
- A new TerminalMouseListener reports mouse presses, releases, drags
(1002) and motion (1003, also without a button) from pointer events,
with Ctrl/Alt modifiers. Before, a drag became a text selection and
motion was never sent. Holding Shift at the press leaves the pointer to
selection while the program owns the mouse.
- The middle button's press and release were reported as the right
button. SGR releases name the released button.
- With mouse tracking on, the wheel is reported on the main screen too.
- TerminalController reports every pointer input kind by default; the
program's mouse mode decides what is sent.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
Unmodified copy of lib/, LICENSE (MIT), pubspec.yaml and CHANGELOG.md from
pub.dev xterm 4.0.0; the upstream README is kept as UPSTREAM_README.md.
Committed on its own so later patches are reviewable as diffs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>