Source: nn Version: 6.7.3-14 Severity: normal Tags: patch Dear Maintainer,
>From f6a0c43e231b1347447fed67f3737d54162c0444 Mon Sep 17 00:00:00 2001 >From: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> >Date: Wed, 24 Mar 2021 17:46:57 +0000 >Subject: [PATCH] term.c: reverse the addition of "#if def __osf__" around > "cfmakeraw(&raw_tty)" and add comments about it Signed-off-by: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> --- 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; -- 2.30.2 -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.19-1 (SMP w/2 CPU threads) Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) -- debconf information excluded -- Bjarni I. Gislason