[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Trying to fix slang

On Wed, Jan 30, 2002 at 11:17:28AM +0000, Phil Blundell wrote:
> Well, yeah.  I don't think there are all that many terminal types in use
> that support UTF8, though, so it wouldn't be all that huge a project.

It'd also mean another, nonstandard step in enabling UTF-8--changing
your terminal type.  It would also need changes in all terminal wrappers,
like screen.

> > It would probably be quicker to change terminfo.
> Can you be a bit more concrete about how you would change it?

The easy way would be to simply pretend those caps aren't there if the
current locale is UTF-8.

This isn't perfect, though; apps that use terminfo for querying terminfo
independently of the actual terminal would break.  Perhaps only do it
when terminfo was initialized with setterm/setupterm(NULL), and make
sure nobody does setupterm(getenv("TERM")).  I'm not sure.

Glenn Maynard

Reply to: