Re: [PATCH 17/16] Do not reset UTF8 on terminal reset

From: Pavel Machek
Date: Tue Apr 03 2007 - 08:43:50 EST


Hi!

> >> Allow for the palette to be exposed and changed via sysfs. A call to
> >> /usr/bin/reset will slurp the new definitions in for the current
> >> console.
> >
> >I like this. The escape sequences to change the palette does not stay
> >permanently.
>
> As much as you like it, there is a slight problem with it. Linux will
> currently throw virtual consoles out of UTF8 mode when reset is called.
>
> Also see:
> http://lkml.org/lkml/2005/5/17/289
> http://lkml.org/lkml/2005/5/17/297
>
> These posts argue about terminfo being the culprit. But how can terminfo
> be at fault, when `echo -en "\ec"` triggers it too?
>
> Since I am in a patch mood, here's my stance/patch, which is compile and
> run tested and behaves as expected (both with `echo` and `reset`).

Should not reset actually reset terminal? This introduces
bug/unexpected behaviour...
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/