Can't log in right on console to accounts in CAPS.

Guy Harris guy at auspex.auspex.com
Thu May 23 07:24:58 AEST 1991


>>     [-]lcase    Set xcase, iuclc, and olcuc.  With a `-',  unset
>>                 them.

...

>Might not be true for SYS V derivatives.

Hate to tell you this, but the "stty" in SunOS 4.0.3 *is* a derivative of
the S5R3 one....

>On HP-UX, for example, use:
>	
>	[-]IUCLC	Force upper case to lower case conversion
>
>in BOTH sections of the /etc/gettydefs entry.

That's "/etc/gettydefs", not "stty".  The two aren't the same, and I was
discussing the "stty" command.

In addition, ihe "I" in "IUCLC" indicates that it's one of the "i"nput
flags; it affects *only* input, *not* output.  Upper-case-only terminals
generally want to run with "IUCLC" (to map upper-case to lower-case on
input), "OLCUC" (to map lower-case to upper-case on output), and "XCASE"
(to cause upper-case characters to be mapped to '\' followed by the
character on output, and cause '\' followed by that character to be
mapped to an upper-case character on input; this also works for some
special characters such as "{" == "\(").

>To turn upper-to-lower case conversion off once the person has logged
>in, put a:
>
>	stty -iuclc

As with "-IUCLC" in "/etc/gettydefs", so with "stty -iuclc"; that just
affects input, not output, and doesn't do all you want on input.

>NB:  the case of the flags above IS SIGNIFICANT!

Yes, but S5's "stty" accepts both "lcase"/"-lcase" and "LCASE"/"-LCASE";
if, as is supposed to be the case, "STTY" is a link to "stty", it means
that even if you have an upper-case only terminal but *don't* have the
flags in question turned on, you can do "STTY LCASE" and turn them on.



More information about the Comp.unix.questions mailing list