Cross platform reimplementation of ttyrec written in golang, based on maze.io/x/ttyrec .
It supports:
rec: Record a sessionplay: Replay in real time the recorded sessiontime: Print the time of the recorded sessionsparse: Parse the session to display recorded session
$ togettyc -h
Usage: togettyc <command> [flags]
Cross-platform reimplementation of ttyrec
Flags:
-h, --help Show context-sensitive help.
Commands:
print [<record-file>] [flags]
Render the record
rec [<exe> [<args> ...]] [flags]
Record
play [<record-file>] [flags]
Play the record
Run "togettyc <command> --help" for more information on a command.$ togettyc rec -h
Usage: togettyc rec [<exe> [<args> ...]] [flags]
Record
Arguments:
[<exe>] Command to execute
[<args> ...] arguments
Flags:
-h, --help Show context-sensitive help.
-a, --append Append to the existing file
-Z, --compress Compress the result (zstd)
-f, --output=STRING Output file name
-S, --shell=STRING Shell to use, using current one by default
togettyccan be used instead oftogettyc rec
$ togettyc print
Usage: togettyc print [<record-file>] [flags]
Render the record
Arguments:
[<record-file>] Record file to print
Flags:
-h, --help Show context-sensitive help.
-d, --date Show date
--no-color Disable colors
-H, --html Display result in HTML
-S, --start-date=LOCAL-TIME Show results after the provided date (format:"YYYY-MM-DD hh:mm:ss")
-E, --end-date=LOCAL-TIME Show results before the provided date (format:"YYYY-MM-DD hh:mm:ss")
-T, --tmux Clean the output with tmux. It should reduce the noise provoked by garbage terminal manipulation$ togettyc play
Usage: togettyc play [<record-file>] [flags]
Play the record
Arguments:
[<record-file>] Record file to replay
Flags:
-h, --help Show context-sensitive help.
-s, --speed=1.0 Modify the speed
-n, --no-wait No wait mode
Usage: togettyc time [<record-file> ...] [flags]
Time to record
Arguments:
[<record-file> ...] Record file to replay
Flags:
-h, --help Show context-sensitive help.
-h, --human-readable Print human readable timeUsage: togettyc print [<record-file>] [flags]
Render the record
Arguments:
[<record-file>] Record file to print
Flags:
-h, --help Show context-sensitive help.
-d, --date Show date
--no-color Disable colors
-H, --html Display result in HTML
-S, --start-date=LOCAL-TIME Show results after the provided date (format:"YYYY-MM-DD hh:mm:ss")
-E, --end-date=LOCAL-TIME Show results before the provided date (format:"YYYY-MM-DD hh:mm:ss")
-T, --tmux Clean the output with tmux. It should reduce the noise provoked by garbage terminal manipulation