Latest Results
New detection methods, clipboard support, and window title (XTWINOPS) (#365)
* introduced: `does_osc52_clipboard`, `clipboard_copy()`, and `clipboard_paste()` to detect, copy to, and read from the system clipboard (OSC 52).
* introduced: `Terminal.get_color_scheme`
* introduced: `Terminal.does_kitty_query` to detect Kitty XTGETTCAP query extensions
* introduced: `Terminal.does_styled_underlines` and `does_colored_underlines` using extended underline styles (``Smulx``) and colored underlines (``Setulc``) via XTGETTCAP.
* introduced: `Terminal.set_window_title` and `window_title()` context manager to set (and reset) the terminal window and/or icon title (XTWINOPS).
* introduced: `DecModeResponse.recognized` to distinguish modes the terminal acknowledges but can't actually use.
* introduced: `Terminal.does_decrqss` to detect DECRQSS (Request Status String) support
Example output from xterm which responds to nearly all common ones,
```
DECRQSS State Queries (DCS $ q):
----------------------------------------
SGR '0' Select Graphic Rendition
DECSCUSR '2' Cursor Style
DECSTBM '1;24' Top/Bottom Margins
DECSLRM '1;80' Left/Right Margins
DECSCL '64;1' Conformance Level
DECSCA '0' Character Protection
DECSCPP '80' Columns Per Page
DECSLPP '24' Lines Per Page
DECSNLS '24' Lines Per Screen
DECSASD -- Active Status Display
DECSSDT -- Status Line Type
DECSACE '0' Attribute Change Extent
```
This might be pretty useful, we can build a get_sgr(), get_cursor_style() or some such like get_bgcolor() or get_location().
- Also included is a new example program, bin/screen-scrape.py which shows a vulnerability found only in mlterm and wezterm
- also updated line_editor_form.py for slightly better styling and clipboard ^C and ^V demo / support Latest Branches
0%
0%
0%
© 2026 CodSpeed Technology