[Toybox] [PATCH] clear.c: Clear scrollback buffer on non-vte (gnome based) terminals
Oliver Webb
aquahobbyist at proton.me
Fri Mar 8 23:29:01 PST 2024
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 <toybox at lists.landley.net> wrote:
> On Friday, March 8th, 2024 at 19:15, Rob Landley rob at landley.net wrote:
[..]
> > > The nommu stuff seems to have only
> > > been done on 2.4/2.6 kernels from 15 years ago.
I'm not a embedded dev, nor a jcore/sh4 person, nor do I really know anything
about NoMMU or it's development, I don't look into it unless it interferes into
my work in some way. I _did_ know that mainline kernels don't support it
(From skimming over the outline for that talk the linux foundation deleted the video of,
dunno were to find it anymore) and haven't since at least 2.6. Because linux-kernel
bureaucrats got significantly worse, and from reading one of your blog posts
(too tired to link) about how linux-kernel pushed away embedded devs. I assumed it wasn't
a thing on modern kernels.
> > Um, no. Not remotely. Lots of embedded devs use older kernels because they're
> > way SMALLER than the modern bloated nonsense, but we support and regression test
> > stuff all the time.
>
> Ah, to be fair that isn't a completely unreasonable assumption to make. UcLinux
> only supported kernels up to 2.6,
Yes, I know uclinux is dead (continued past 2.6 release without updating
the kernel from my (little amount of) knowledge tho), but (I think?)
NoMMU isn't supported in mainline kernels. and I dunno of any forks
of the kernel that patch in support for NoMMU like uclinux had for later
versions (Going off "Kernel type: Linux kernel-fork" from the wikipedia page)
> and the main NOMMU crowd is embedded developers.
> I've never seen anything before about modern linux doing NoMMU, and since they haven't
> supported it
In mainline kernels*
> for at least a decade I assumed modern ones couldn't do it.
[...]
> > When was the sequence added to "man 7 console_codes"?
It's in man 4 because it has to do with /dev/tty*, kernel documentation
that isn't separate from anything.
If you read it, it also tells you directly:
J ED Erase display (default: from cursor to end of display).
ESC [ 1 J: erase from start to cursor.
ESC [ 2 J: erase whole display.
ESC [ 3 J: erase whole display including scroll-back buffer (since Linux 3.0).
- Oliver Webb aquahobbyist at proton.me
More information about the Toybox
mailing list