Implement more tty flags for better portability from other systems:
XCASE - canonical input/output processing
IUCLC - translate uppercase to lowercase on input
OLCUC - translate lowercase to uppercase on output
OCRNL - translate carriage return to newline on output
ONOCR - do not output carriage return at column 0
ONLRET - newline performs carriage return function
In addition the tty compatibility interface supports LCASE properly.
Look at termios(4) for a more complete description of the above flags.