#ifndef lint
/*static char sccsid[] = "from: @(#)main.c 8.1 (Berkeley) 6/20/93";*/
-static char rcsid[] = "$Id: main.c,v 1.5 1996/12/10 07:58:34 deraadt Exp $";
+static char rcsid[] = "$Id: main.c,v 1.6 1996/12/17 19:33:53 tholo Exp $";
#endif /* not lint */
#include <sys/param.h>
tmode.c_iflag |= ICRNL;
tmode.c_oflag |= ONLCR;
}
-#if XXX
- if (upper || UC)
- tmode.sg_flags |= LCASE;
- if (lower || LC)
- tmode.sg_flags &= ~LCASE;
-#endif
+ if (upper || UC) {
+ tmode.c_iflag |= IUCLC;
+ tmode.c_oflag |= OLCUC;
+ tmode.c_lflag |= XCASE;
+ }
+ if (lower || LC) {
+ tmode.c_iflag &= ~IUCLC;
+ tmode.c_oflag &= ~OLCUC;
+ tmode.c_lflag &= ~XCASE;
+ }
if (tcsetattr(0, TCSANOW, &tmode) < 0) {
syslog(LOG_ERR, "%s: %m", ttyn);
exit(1);
#ifndef lint
/*static char sccsid[] = "from: @(#)subr.c 8.1 (Berkeley) 6/4/93";*/
-static char rcsid[] = "$Id: subr.c,v 1.6 1996/12/16 20:04:45 tholo Exp $";
+static char rcsid[] = "$Id: subr.c,v 1.7 1996/12/17 19:33:55 tholo Exp $";
#endif /* not lint */
/*
}
} /* else, leave as is */
-#if 0
- if (UC)
- f |= LCASE;
-#endif
+ if (UC) {
+ SET(iflag, IUCLC);
+ SET(oflag, OLCUC);
+ SET(lflag, XCASE);
+ }
if (HC)
SET(cflag, HUPCL);
SET(oflag, OXTABS);
else
CLR(oflag, OXTABS);
- if (ISSET(flags, LCASE))
+ if (ISSET(flags, LCASE)) {
SET(iflag, IUCLC);
SET(oflag, OLCUC);
SET(lflag, XCASE);