#985839 term.c: reverse the addition of "#if def __osf__" around "cfmakeraw(&raw_tty)" and add comments about it

Package:
src:nn
Source:
nn
Submitter:
Bjarni Ingi Gislason
Date:
2021-03-24 18:03:06 UTC
Severity:
normal
Tags:
#985839#5
Date:
2021-03-24 18:00:00 UTC
From:
To:
Dear Maintainer,
---
 term.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/term.c b/term.c
index 670f542..4bbafec 100644
--- a/term.c
+++ b/term.c
@@ -672,10 +672,17 @@ init_term(int full)
 #else

 #ifdef HAVE_TERMIOS_H
-#  ifdef __osf__
     cfmakeraw(&raw_tty);
-#  endif
+/*
+ *  cfmakeraw makes the following according to the man page "cfmakeraw(3)":

+termios_p->c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);
+termios_p->c_oflag &= ~OPOST;
+termios_p->c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
+termios_p->c_cflag &= ~(CSIZE | PARENB);
+termios_p->c_cflag |= CS8;
+ *
+*/
     /* read a maximum of 10 characters in one burst; timeout in 1-200 ms */
     raw_tty.c_cc[VMIN] = KEY_BURST;