From owner-freebsd-questions Wed Feb 4 23:32:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA02021 for questions-outgoing; Wed, 4 Feb 1998 23:32:51 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from smtp04.primenet.com (smtp04.primenet.com [206.165.6.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA01958; Wed, 4 Feb 1998 23:32:44 -0800 (PST) (envelope-from tlambert@usr08.primenet.com) Received: (from daemon@localhost) by smtp04.primenet.com (8.8.8/8.8.8) id AAA17083; Thu, 5 Feb 1998 00:32:43 -0700 (MST) Received: from usr08.primenet.com(206.165.6.208) via SMTP by smtp04.primenet.com, id smtpd017075; Thu Feb 5 00:32:38 1998 Received: (from tlambert@localhost) by usr08.primenet.com (8.8.5/8.8.5) id AAA10666; Thu, 5 Feb 1998 00:32:34 -0700 (MST) From: Terry Lambert Message-Id: <199802050732.AAA10666@usr08.primenet.com> Subject: Re: character-set information for terminals. To: j_mini@efn.org Date: Thu, 5 Feb 1998 07:32:34 +0000 (GMT) Cc: tlambert@primenet.com, hackers@FreeBSD.ORG, questions@FreeBSD.ORG In-Reply-To: <19980204231234.44363@micron.mini.net> from "Jonathan Mini" at Feb 4, 98 11:12:34 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe questions" > > > 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.