util-linux/backport-scriptreplay-support-ctrl-s-and-ctrl-g.patch

34 lines
1.1 KiB
Diff
Raw Normal View History

2024-12-16 02:37:59 +00:00
From 584e505186c1aa511ea96761a8d108f4fe734f0e Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Mon, 11 Sep 2023 15:17:01 +0200
Subject: [PATCH] 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 <kzak@redhat.com>
Reference:https://github.com/util-linux/util-linux/commit/584e505186c1aa511ea96761a8d108f4fe734f0e
Conflict:NA
---
term-utils/scriptreplay.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/term-utils/scriptreplay.c b/term-utils/scriptreplay.c
index fb68499c8..38fa4251c 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;
}
--
2.33.0