On 2021-10-25 14:44:32 -0500, Derek Martin wrote:
> There is an ANSI escape sequence to tee data to your printer, sure...
> but it can not be used retroactively copy data that is on your
> terminal to the printer.  It just copies data that is currently being
> displayed (i.e. since the sequence was emitted) to the printer.

I was wondering whether this could occur when switching to the
alternate screen. But it seems that this is not the case, at least
not with Xterm's logging feature.

So I assume that as long as the user doesn't use a virtual terminal
inside the real terminal, things are safe. Users of virtual terminals
(GNU Screen, etc.) should be careful, as older data are sent back to
the real terminal when switching a window, for instance. However, in
case of any issue, the real solution should be to ensure that the
printing feature is disabled.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to