]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
scriptreplay: add key bindings info to --help
authorKarel Zak <kzak@redhat.com>
Mon, 10 Feb 2025 11:51:28 +0000 (12:51 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 10 Feb 2025 11:51:28 +0000 (12:51 +0100)
Addresses: https://github.com/util-linux/util-linux/discussions/3404
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/scriptreplay.c

index 77f0570358a2532d698fc9fa26e4a8bb1afef361..c8a1ad0c4dd674c034e896ef3a98afa84dac9595 100644 (file)
@@ -73,6 +73,12 @@ usage(void)
        fputs(_(" -c, --cr-mode <type>    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);
 }