Mercurial > hg > octave-avbm
changeset 397:9e42358d1f1f
[project @ 1994-03-28 23:28:33 by jwe]
author | jwe |
---|---|
date | Mon, 28 Mar 1994 23:28:33 +0000 |
parents | 5bde2100598a |
children | 167ea9ebd5a0 |
files | src/utils.cc |
diffstat | 1 files changed, 16 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/utils.cc +++ b/src/utils.cc @@ -277,8 +277,14 @@ s.c_lflag &= ~(ICANON|ECHO|ECHOE|ECHOK|ECHONL); s.c_oflag |= (OPOST|ONLCR); -#if ! defined (NeXT) - s.c_oflag &= ~(OCRNL|ONOCR|ONLRET); +#if defined (OCRNL) + s.c_oflag &= ~(OCRNL); +#endif +#if defined (ONOCR) + s.c_oflag &= ~(ONOCR); +#endif +#if defined (ONLRET) + s.c_oflag &= ~(ONLRET); #endif s.c_cc[VMIN] = 1; s.c_cc[VTIME] = 0; @@ -312,8 +318,14 @@ s.c_lflag &= ~(ICANON|ECHO|ECHOE|ECHOK|ECHONL); s.c_oflag |= (OPOST|ONLCR); -#if ! defined (NeXT) - s.c_oflag &= ~(OCRNL|ONOCR|ONLRET); +#if defined (OCRNL) + s.c_oflag &= ~(OCRNL); +#endif +#if defined (ONOCR) + s.c_oflag &= ~(ONOCR); +#endif +#if defined (ONLRET) + s.c_oflag &= ~(ONLRET); #endif s.c_cc[VMIN] = 1; s.c_cc[VTIME] = 0;