From: Karel Zak Date: Mon, 10 Feb 2025 11:51:28 +0000 (+0100) Subject: scriptreplay: add key bindings info to --help X-Git-Tag: v2.42-start~50^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=762e58650a1062e8ae8cf28a0d190cd10a99cdff;p=thirdparty%2Futil-linux.git scriptreplay: add key bindings info to --help Addresses: https://github.com/util-linux/util-linux/discussions/3404 Signed-off-by: Karel Zak --- diff --git a/term-utils/scriptreplay.c b/term-utils/scriptreplay.c index 77f057035..c8a1ad0c4 100644 --- a/term-utils/scriptreplay.c +++ b/term-utils/scriptreplay.c @@ -73,6 +73,12 @@ usage(void) fputs(_(" -c, --cr-mode CR char mode (auto, never, always)\n"), out); fprintf(out, USAGE_HELP_OPTIONS(25)); + fputs(USAGE_SEPARATOR, out); + fputs(_("Key bindings:\n"), out); + fputs(_(" space toggles pause and unpause\n"), out); + fputs(_(" up-arrow increases the playback speed by 0.1 times\n"), out); + fputs(_(" down-arrow decreases the playback speed by 0.1 times\n"), out); + fprintf(out, USAGE_MAN_TAIL("scriptreplay(1)")); exit(EXIT_SUCCESS); }