From 2a61c0a2e3289ad3c84566576a1fd7e989f75348 Mon Sep 17 00:00:00 2001 From: joerg Date: Sat, 21 Oct 1995 23:47:43 +0000 Subject: Finally catch up with the Frenchmen, and create the German message catalog. :-) --- lib/libncurses/lib_raw.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'lib/libncurses') diff --git a/lib/libncurses/lib_raw.c b/lib/libncurses/lib_raw.c index 336f689..fac726e 100644 --- a/lib/libncurses/lib_raw.c +++ b/lib/libncurses/lib_raw.c @@ -21,6 +21,10 @@ #include "curses.priv.h" #include "terminfo.h" +#ifdef TERMIOS +static tcflag_t iexten = 0; +#endif + int raw() { T(("raw() called")); @@ -30,7 +34,9 @@ int raw() SP->_nlmapping = TRUE; #ifdef TERMIOS - cur_term->Nttyb.c_lflag &= ~(ICANON|ISIG); + if(iexten == 0) + iexten = cur_term->Nttyb.c_lflag & IEXTEN; + cur_term->Nttyb.c_lflag &= ~(ICANON|ISIG|iexten); cur_term->Nttyb.c_iflag &= ~(INPCK|ISTRIP|IXON); cur_term->Nttyb.c_oflag &= ~(OPOST); cur_term->Nttyb.c_cc[VMIN] = 1; @@ -119,7 +125,7 @@ int noraw() SP->_nlmapping = SP->_nl; #ifdef TERMIOS - cur_term->Nttyb.c_lflag |= ISIG|ICANON; + cur_term->Nttyb.c_lflag |= ISIG|ICANON|iexten; cur_term->Nttyb.c_iflag |= IXON; cur_term->Nttyb.c_oflag |= OPOST; if((tcsetattr(cur_term->Filedes, TCSANOW, &cur_term->Nttyb)) == -1) -- cgit v1.1