From: Soumendra Ganguly Date: Fri, 17 Jul 2020 09:54:30 +0000 (-0500) Subject: scriptreplay: enable special character handling X-Git-Tag: v2.37-rc1~548 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=00a09d78ea7ee2180d32280c9157677fef8d204c;p=thirdparty%2Futil-linux.git scriptreplay: enable special character handling Calling cfmakeraw disables terminal special character handling. For example, Ctrl-C does not send SIGINT to scriptreplay. The following fixes this. tattr.c_lflag |= ISIG; where tattr is the struct termios with which we are working. --- diff --git a/term-utils/scriptreplay.c b/term-utils/scriptreplay.c index 19a7d568b4..99edcaf8d6 100644 --- a/term-utils/scriptreplay.c +++ b/term-utils/scriptreplay.c @@ -130,6 +130,7 @@ static int termraw(struct termios *backup) tattr = *backup; cfmakeraw(&tattr); + tattr.c_lflag |= ISIG; if (tcsetattr(STDOUT_FILENO, TCSANOW, &tattr) != 0) return -1;