Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Feb 1998 07:32:34 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        j_mini@efn.org
Cc:        tlambert@primenet.com, hackers@FreeBSD.ORG, questions@FreeBSD.ORG
Subject:   Re: character-set information for terminals.
Message-ID:  <199802050732.AAA10666@usr08.primenet.com>
In-Reply-To: <19980204231234.44363@micron.mini.net> from "Jonathan Mini" at Feb 4, 98 11:12:34 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> > > Also from "man setlocale"... 8-).
> > 
> >   BAH! I missed the reference to a man page. Please hand me a tiny pointy
> > hat. 
> 
>   Only problem is that the locale doesn't provide me with the information I
> need. :(

What exactly do you need?

All terminal devices are expected to run in the C locale, unless
otherwise specified by the user -- just as all terminal devices
are expected to behave as dumb tty's, unless otherwise specified
by the user.

In either case, the user does their specifying with environment
variables.

One might wish for an explicit locale specification mechanism in
/etc/ttys, just as terminal types may be specified there.

NOTE: Your use of the TERM environment variable to "know" the
terminal type of the device and therefore which termcap entry to
use is limited to the fact that there is an explicit mapping of
device to line; the rest of your environment comes in via an
environment passing mechanism, for pty devices accessed by other
programs.

Unfortunately, there is no explicit locale mechanism in /etc/ttys;
and even though there is *exactly* the same static mapping of the
/etc/gettytab entries as there is TERM envirnment variable values,
there is also no explicit locale mechanism in /etc/gettytab.

Of course, there's a non-explicit locale mechanism in /etc/gettytab:
set the environment variables using the "ev" property...

Then you might want to set a vt220 initialization string the the vt220
termcap to place it in an NRCS mode (or download sixels for your
chosen international character set), by overloading "im"...

But then if you did all that, you might as well set the terminal type
using the "tt" property, instead of putting it in /etc/ttys.

And if all else fails, run a program other than /usr/bin/login to
get everything set up (using the "lo" property...

man ttys
man gettytab

8-).


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802050732.AAA10666>