Add partial implementation for MC_DEC seq (media copy)
Hello. This is a partial implementation of MC_DEC
, which saves the visible portion of the terminal contents to a file. By default, the feature is disabled unless the caller invokes vte_terminal_set_print_pathname
(or if --print-file
is specified on the built-in app).
A full VT525- and ECMA-compatible implementation of media copy, such as in xterm, would be more involved. Just this sequence satisfies my personal use-case however. (I can share more about my use-case if anyone is interested.)
You can test this by starting the the built-in vte app with --print-file xyz
and then sending escape sequence printf '\033[?10i'
.
0001-Add-partial-implementation-for-MC_DEC-seq-media-copy.patch
Edited by adsr