[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CRMOD fix...
tty.c: ++entropy@terminator.rs.itd.umich.edu
Do CRMOD input translation only in COOKED mode.
--- 1.10.1.5 1994/03/20 09:52:24
+++ tty.c 1994/03/20 09:53:06
@@ -122,7 +122,7 @@
return bytes_read;
ch = r & 0xff;
- if ( (mode & T_CRMOD) && (ch == '\r') )
+ if ( (rdmode & COOKED) && (mode & T_CRMOD) && (ch == '\r') )
ch = '\n';
/* 1 character reads in TOS mode are always raw */
--
entropy -- it's not just a good idea, it's the second law.
Personal mail: entropy@gnu.ai.mit.edu
MiNT library mail: entropy@terminator.rs.itd.umich.edu
"what do you have against octal?" -jrb