[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mutt-dev
Subject:    Re: [PATCH] Option to clear the screen on quit
From:       Derek Martin <invalid () pizzashack ! org>
Date:       2021-10-29 19:19:29
Message-ID: 20211029191929.GA15901 () bladeshadow ! org
[Download RAW message or body]


On Wed, Oct 27, 2021 at 05:10:35PM +0200, Vincent Lefevre wrote:
> 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.

Right, that wouldn't make sense... the I/O is not re-delivered to the
terminal (and I assume the contents of the alternate screen are just
sitting in a buffer, which is simply re-displayed).  Otherwise
switching back and forth between screens would cause the data to be
sent to the printer, again and again...  That does not seem like it
would ever be desireable behavior.

> 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.

I hadn't considered this, but one would hope that maintainers of such
software would not buffer the printer sequence so that it is only
issued on initial display.  In any case...

> However, in case of any issue, the real solution should be to ensure
> that the printing feature is disabled.

I would not disagree. :)

-- 
Derek D. Martin    http://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail due to spam prevention.  Sorry for the inconvenience.


["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic