VT sequence: screenshot #161
Labels
enhancement
New feature or request
frontend
Contour Terminal Emulator (GUI frontend)
VT: Backend
Virtual Terminal Backend (libterminal API)
VT: rasterizer
Rendering of the terminal into a pixmap using `terminal_renderer` library
Milestone
Syntax:
OSC 533 ; top ; left ; bottom ; right ; format ST
If not region is specified, the whole main page area is taken.
Leaving out individual region parameters will be filled to respect the former statement.
Format defaults to PNG. Supported should be
The terminal will reply with the taken screenshot using the following sequence.
OSC 533 ; top ; left ; lines ; columns ; format ; Pt ST
Where
Pt
will be the actual screenshot data and the remaining parameters match the input parameters (filled with the defaulted values).Security: this VT sequence may want a config option for permission testing:
screenshot: allow/deny/ask. (Per profile, default: ask)
A script could be provided to take screenshots and safe them to disk or clipboard (could be part of contour executable:
contour screenshot [args ...]
)For the ask-option, the popup dialog could also preview the image to be copied by the application.
The text was updated successfully, but these errors were encountered: