I have a live running mate-terminal whose scrollback buffer already contains a lot of text with color/bolding, but (unfortunately) no screen management/capture program (like script
/screen
/tmux
) was started on the terminal. Is it possible to copy the existing scrollback buffer contents to a file, preserving all escape sequences?
There is an answer to this problem for xterm by Thomas Dickey, but even in that solution the color escape sequences are not getting saved to the file specified by the but I am looking for a solution for mate-terminal.printerCommand
resource.
Edit note: It seems unlikely that a solution for this problem exists for the mate-terminal; see the comments in Thomas Dickey's answer below.
Just to be clear, pre-starting a terminal screen management/capture program (like script or GNU screen or tmux) is not an option, because here we want to copy terminal output already produced before starting any such program.
printAttributes
resource). Any idea if something similar can be done for mate-terminal? – adgadg Aug 26 '18 at 22:54