]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
scriptreplay: support ctrl+s and ctrl+g
authorKarel Zak <kzak@redhat.com>
Mon, 11 Sep 2023 13:17:01 +0000 (15:17 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 11 Sep 2023 13:21:41 +0000 (15:21 +0200)
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 <kzak@redhat.com>
term-utils/scriptreplay.c

index fb68499c8540e9c240bebed456f031357ab2447f..38fa4251c8779d81397a1fde65cf1f5f4fcaaaf3 100644 (file)
@@ -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;
 }