Re: [Toybox] [PATCH] clear.c: Clear scrollback buffer on non-vte (gnome based) terminals

2024-03-08 Thread Oliver Webb via Toybox
Forgot to mention some things, A Erratum so I don't sound stupid. On Friday, March 8th, 2024 at 19:47, Oliver Webb via Toybox wrote: > On Friday, March 8th, 2024 at 19:15, Rob Landley r...@landley.net wrote: [..] > > > The nommu stuff seems to have only > > > been done on 2.4/2.6 kernels from

Re: [Toybox] [PATCH] clear.c: Clear scrollback buffer on non-vte (gnome based) terminals

2024-03-08 Thread Oliver Webb via Toybox
On Friday, March 8th, 2024 at 19:15, Rob Landley wrote: > On 3/8/24 00:02, Oliver Webb wrote: > > > On Wednesday, March 6th, 2024 at 01:22, Rob Landley r...@landley.net wrote: > > > > > It's actually "reset" that should yank the tty out of cooked mode, which I > > > believe it does now. > > >

Re: [Toybox] [PATCH] clear.c: Clear scrollback buffer on non-vte (gnome based) terminals

2024-03-08 Thread Rob Landley
On 3/8/24 00:02, Oliver Webb wrote: > On Wednesday, March 6th, 2024 at 01:22, Rob Landley wrote: > >> It's actually "reset" that should yank the tty out of cooked mode, which I >> believe it does now. >> >> Why we have both "clear" and "reset", I couldn't tell you. > > reset sets tty settings

Re: [Toybox] [PATCH] clear.c: Clear scrollback buffer on non-vte (gnome based) terminals

2024-03-07 Thread Oliver Webb via Toybox
On Wednesday, March 6th, 2024 at 01:22, Rob Landley wrote: > It's actually "reset" that should yank the tty out of cooked mode, which I > believe it does now. > > Why we have both "clear" and "reset", I couldn't tell you. reset sets tty settings while clear doesn't, large enough difference to

Re: [Toybox] [PATCH] clear.c: Clear scrollback buffer on non-vte (gnome based) terminals

2024-03-06 Thread enh via Toybox
On Tue, Mar 5, 2024 at 11:49 PM Rob Landley wrote: > > On 3/5/24 18:31, enh via Toybox wrote: > >> We have a 7-10 year support horizon, How many terminal escape protocols > >> have been relevant > >> in the last 10 years: One. The story is the same for UTF8 and LP64 > > There's a certain amount

Re: [Toybox] [PATCH] clear.c: Clear scrollback buffer on non-vte (gnome based) terminals

2024-03-06 Thread David Seikel
On 2024-03-06 01:57:42, Rob Landley wrote: > Commodore did a unix for the amiga: > > https://en.wikipedia.org/wiki/Amiga_Unix Which, at least in Australia, they used for their own developer support servers. I know this coz I was a member of the Australian Amiga Developers, who where owed some

Re: [Toybox] [PATCH] clear.c: Clear scrollback buffer on non-vte (gnome based) terminals

2024-03-06 Thread Rob Landley
On 3/5/24 19:16, Oliver Webb via Toybox wrote: > Taking a quick look at the release notes for hurd, they are starting x86_64 > and AMD64 > support, Not surprised you've never seen it and neither have I. > > In the 80s and 90s it was probably a lot more relevant then it is now. No, it really

Re: [Toybox] [PATCH] clear.c: Clear scrollback buffer on non-vte (gnome based) terminals

2024-03-05 Thread Rob Landley
On 3/5/24 18:31, enh via Toybox wrote: >> We have a 7-10 year support horizon, How many terminal escape protocols have >> been relevant >> in the last 10 years: One. The story is the same for UTF8 and LP64 There's a certain amount of 80/20 going on. If you 80/20 twice you get 96%. (80% of the

Re: [Toybox] [PATCH] clear.c: Clear scrollback buffer on non-vte (gnome based) terminals

2024-03-05 Thread Rob Landley
On 3/5/24 14:44, Oliver Webb via Toybox wrote: >>From https://landley.net/notes-2022.html#17-10-2022: > the smallest one is "clear" which is actually fraught (the escape does not > reset the TTY out of "cooked" mode, It's actually "reset" that should yank the tty out of cooked mode, which I

Re: [Toybox] [PATCH] clear.c: Clear scrollback buffer on non-vte (gnome based) terminals

2024-03-05 Thread Oliver Webb via Toybox
On Tuesday, March 5th, 2024 at 18:31, enh wrote: > On Tue, Mar 5, 2024 at 4:01 PM Oliver Webb via Toybox > > \e[3J is a widely implemented extension (so is \ec), not standardized, but > > linux tty's, VTE terminals (gnome-terminal and the dozen derivatives of it), > > st, xterm, kitty, and tmux

Re: [Toybox] [PATCH] clear.c: Clear scrollback buffer on non-vte (gnome based) terminals

2024-03-05 Thread enh via Toybox
On Tue, Mar 5, 2024 at 4:01 PM Oliver Webb via Toybox wrote: > > (Yes, I did read "I believe there is no point in continuing this > conversation.", > but there are still some questions and statements I feel the need to respond > to) > > On Tuesday, March 5th, 2024 at 16:32, Mouse > wrote: > >

Re: [Toybox] [PATCH] clear.c: Clear scrollback buffer on non-vte (gnome based) terminals

2024-03-05 Thread Oliver Webb via Toybox
(Yes, I did read "I believe there is no point in continuing this conversation.", but there are still some questions and statements I feel the need to respond to) On Tuesday, March 5th, 2024 at 16:32, Mouse wrote: > except for a recent spate of programs that insist on > throwing X3.64 at me even

Re: [Toybox] [PATCH] clear.c: Clear scrollback buffer on non-vte (gnome based) terminals

2024-03-05 Thread Mouse
>> What about terminals - and emulators - that don't do X3.64? > I haven't found one that doesn't do X3.64 yet, except ancient > outdated ones that toybox probably shouldn't care about for the same > reason it doesn't care about EBCDIC or the 'mt' command. Ah. >> ESC does nothing for me, so

Re: [Toybox] [PATCH] clear.c: Clear scrollback buffer on non-vte (gnome based) terminals

2024-03-05 Thread Oliver Webb via Toybox
On Tuesday, March 5th, 2024 at 15:31, Mouse wrote: > > "\ec" is supported by linux ttys, and clears the screen in all > > terminals I tested. And "\e[3J" has been supported by linux since > > 3.0, and clears the scrollback buffer in every terminal I've tested > > that has one, and is a NOP for

Re: [Toybox] [PATCH] clear.c: Clear scrollback buffer on non-vte (gnome based) terminals

2024-03-05 Thread Mouse
> "\ec" is supported by linux ttys, and clears the screen in all > terminals I tested. And "\e[3J" has been supported by linux since > 3.0, and clears the scrollback buffer in every terminal I've tested > that has one, and is a NOP for terminals without one like linux tty's > or st What about

[Toybox] [PATCH] clear.c: Clear scrollback buffer on non-vte (gnome based) terminals

2024-03-05 Thread Oliver Webb via Toybox
>From https://landley.net/notes-2022.html#17-10-2022: the smallest one is "clear" which is actually fraught (the escape does not reset the TTY out of "cooked" mode, ncurses clear doesn't seem to effect tty settings (unix2dox because -opost): $ stty raw && stty | unix2dos speed 38400 baud; line =