From: Karel Zak Date: Mon, 11 Sep 2023 13:17:01 +0000 (+0200) Subject: scriptreplay: support ctrl+s and ctrl+g X-Git-Tag: v2.40-rc1~249^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=584e505186c1aa511ea96761a8d108f4fe734f0e;p=thirdparty%2Futil-linux.git scriptreplay: support ctrl+s and ctrl+g The old scriptreplay supported XON/XOFF flow control. The new implementation uses cfmakeraw() and it disables it by default. Let's enable it by IXON iflag. Fixes: https://github.com/util-linux/util-linux/issues/2480 References: https://github.com/util-linux/util-linux/pull/1101 Signed-off-by: Karel Zak --- diff --git a/term-utils/scriptreplay.c b/term-utils/scriptreplay.c index fb68499c85..38fa4251c8 100644 --- a/term-utils/scriptreplay.c +++ b/term-utils/scriptreplay.c @@ -134,6 +134,7 @@ setterm(struct termios *backup) tattr = *backup; cfmakeraw(&tattr); tattr.c_lflag |= ISIG; + tattr.c_iflag |= IXON; tcsetattr(STDOUT_FILENO, TCSANOW, &tattr); return 1; }