Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VT sequence: screenshot #161

Open
christianparpart opened this issue Jan 23, 2021 · 0 comments · May be fixed by #1648
Open

VT sequence: screenshot #161

christianparpart opened this issue Jan 23, 2021 · 0 comments · May be fixed by #1648
Assignees
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

Comments

@christianparpart
Copy link
Member

christianparpart commented Jan 23, 2021

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

  • plain text
  • VT sequences
  • SIXEL
  • PNG
  • GIF
  • BMP (or similar for automated testing)

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.

@christianparpart christianparpart added enhancement New feature or request VT: Backend Virtual Terminal Backend (libterminal API) GL terminal view labels Jan 23, 2021
@christianparpart christianparpart added this to the 0.2.0 milestone Jan 23, 2021
@christianparpart christianparpart modified the milestones: 0.2.0, 0.3.0 Jan 31, 2021
@christianparpart christianparpart added frontend Contour Terminal Emulator (GUI frontend) VT: rasterizer Rendering of the terminal into a pixmap using `terminal_renderer` library and removed GL terminal view labels Jun 24, 2021
@christianparpart christianparpart removed this from the 0.3.0 milestone Dec 14, 2021
@Yaraslaut Yaraslaut added this to the 2024-1 milestone Oct 21, 2024
@Yaraslaut Yaraslaut self-assigned this Oct 23, 2024
@Yaraslaut Yaraslaut linked a pull request Nov 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants