On Fri, Oct 16, 2020 at 9:36 PM Steven D'Aprano <st...@pearwood.info> wrote:
> > Well, in terminals like bash, `clear` does not really delete the > > previous input. It simply move the scroll so the first line of the > > input is the current input. > > That's not actually correct: in bash, `clear` actually deletes the > scrollback buffer too. > I never noticed that, since my "terminal" is `tmux` (running inside a Linux terminal). In that case, `clear` might clear the underlying terminal scrollback buffer, but it does not clear the tmux scrollback buffer. The `screen` terminal multiplexer is similar. Both screen and tmux HAVE a way to clear their scrollback buffer, but it is two different ways between those popular programs... both different from the `clear` command in the underlying terminal. I don't use MacOS anymore, but when I did I used iTerm2, which has a fork of the tmux code to implement its pane division functionality. I do not know whether that very popular terminal clears the actual scrollback with the `clear` command. I feel like I remember it not doing that, but it's been a couple years. All of which suggests to me that doing the "same thing" in a platform neutral way is not an insignificant effort. -- The dead increasingly dominate and strangle both the living and the not-yet born. Vampiric capital and undead corporate persons abuse the lives and control the thoughts of homo faber. Ideas, once born, become abortifacients against new conceptions.
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/SGWZTDBDTVFQWHCV7RDTUVDY2VY4G4CU/ Code of Conduct: http://python.org/psf/codeofconduct/