]> git.ipfire.org Git - thirdparty/util-linux.git/commit
scriptreplay: make Up/Down keys use a percentage instead of fixed amount
authorBenno Schulenberg <bensberg@telfort.nl>
Mon, 24 Feb 2025 13:08:36 +0000 (14:08 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 25 Feb 2025 07:52:27 +0000 (08:52 +0100)
commit0c0b083719ac59809ad05426b894ca84aa9e8faf
tree3af14d0a4107a2a2fdc1e68c262e9368e5d015b7
parent083055598a7903896a5112eb1952816009fa576c
scriptreplay: make Up/Down keys use a percentage instead of fixed amount

Using a fixed 0.1 amount made each subsequent Down-arrow key slow things
down _more_, and each subsequent Up-arrow key speed things up _less_.
It's nicer when each subsequent keystroke has the same relative effect.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
(cherry picked from commit 2b528997f22c2784bf09d492842833f3a1e38ab0)
term-utils/scriptreplay.c