Skip to content

Commit

Permalink
Merge branch 'PR/scriptreplay-binding-help' of https://github.com/kar…
Browse files Browse the repository at this point in the history
…elzak/util-linux-work

* 'PR/scriptreplay-binding-help' of https://github.com/karelzak/util-linux-work:
  scriptreplay: add key bindings info to --help
  • Loading branch information
karelzak committed Feb 12, 2025
2 parents 757933d + 762e586 commit 3775f46
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions term-utils/scriptreplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3775f46

Please sign in to comment.