-
-
Notifications
You must be signed in to change notification settings - Fork 143
VT sequence: screenshot #161
Copy link
Copy link
Labels
VT: BackendVirtual Terminal Backend (libterminal API)Virtual Terminal Backend (libterminal API)VT: rasterizerRendering of the terminal into a pixmap using `terminal_renderer` libraryRendering of the terminal into a pixmap using `terminal_renderer` libraryenhancementNew feature or requestNew feature or requestfrontendContour Terminal Emulator (GUI frontend)Contour Terminal Emulator (GUI frontend)
Milestone
Metadata
Metadata
Assignees
Labels
VT: BackendVirtual Terminal Backend (libterminal API)Virtual Terminal Backend (libterminal API)VT: rasterizerRendering of the terminal into a pixmap using `terminal_renderer` libraryRendering of the terminal into a pixmap using `terminal_renderer` libraryenhancementNew feature or requestNew feature or requestfrontendContour Terminal Emulator (GUI frontend)Contour Terminal Emulator (GUI frontend)
Syntax:
OSC 533 ; top ; left ; bottom ; right ; format STIf 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 STWhere
Ptwill 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.