diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-08-02 19:26:32 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-08-02 19:26:32 +0000 |
commit | ab9913e31f09cb9587a78e4dc5a58a5622d9fbb9 (patch) | |
tree | c58c63765017b31480ee03117524f66d15d9acc6 /ace/TTY_IO.cpp | |
parent | 52f846534e8450c57a3f882b60374876d674b819 (diff) | |
download | ATCD-ab9913e31f09cb9587a78e4dc5a58a5622d9fbb9.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/TTY_IO.cpp')
-rw-r--r-- | ace/TTY_IO.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ace/TTY_IO.cpp b/ace/TTY_IO.cpp index f257bcf2c57..064b338d78c 100644 --- a/ace/TTY_IO.cpp +++ b/ace/TTY_IO.cpp @@ -105,11 +105,13 @@ ACE_TTY_IO::control (Control_Mode cmd, #endif /* CREAD */ c_oflag=0; - c_iflag=IGNPAR|INPCK|ISTRIP; + c_iflag = IGNPAR | INPCK; + if (arg->databits < 8) + c_iflag |= ISTRIP; c_lflag=0; - ivmin_cc4 =(u_char)0; - ivtime_cc5=(u_char)(arg->readtimeoutmsec/100); + ivmin_cc4 =(u_char) 0; + ivtime_cc5=(u_char) (arg->readtimeoutmsec / 100); devpar.c_iflag = c_iflag; devpar.c_oflag = c_oflag; devpar.c_cflag = c_cflag; |