12/5/2023 0 Comments Delete asciinema public![]() ![]() Print full output of recorded asciicast to a terminal. Recommendation: run `asciinema play' in a terminal of dimensions not smaller than the one used for recording as there’s no “transcoding” of control sequences for the new terminal size. Step through a recording a frame at a time (when paused) Ctrl+C Playback speed (can be fractional) While playing the following keyboard shortcuts are available: Space Limit replayed terminal inactivity to max seconds (can be fractional) -s, -speed= Ssh cat asciicast.cast | asciinema play -Īsciinema play dweb:/ipfs/QmNe7FsYaHc9SaDEAEXbaagAzNw9cH7YbzN4xV7jV1MCzK/ascii.cast Available options: -i, -idle-time-limit= Playing from asciicast page URL (requires in page’s HTML):Ĭat /path/to/asciicast.cast | asciinema play. The asciicast can be read from a file or from stdin (`-'): This command replays a given asciicast (as recorded by rec command) directly in your terminal. Because it’s basically a key-logging (scoped to a single shell instance), it’s disabled by default, and has to be explicitly enabled via –stdin option. asciinema-player ( )) to display pressed keys. Stdin recording allows for capturing of all characters typed in by the user in the currently recorded shell. Override terminal rows for recorded process -y, -yesĪnswer “yes” to all prompts (e.g. upload confirmation) -q, -quietīe quiet, suppress all notices/warnings (implies -y) Override terminal columns for recorded process -rows= ![]() Limit recorded terminal inactivity to max seconds -cols= Specify the title of the asciicast -i, -idle-time-limit= List of environment variables to capture, defaults to SHELL,TERM -t, -title= Specify command to record, defaults to $SHELL -e, -env= Overwrite the recording if it already exists -c, -command= Save raw STDOUT output, without timing information or other metadata -overwrite Available options: -stdinĮnable stdin (keyboard) recording (see below) -append zshrc) to alter the prompt or play a sound when the shell is being recorded. This can be used by your shell’s config file (. ĪSCIINEMA_REC=1 is added to recorded process environment variables. It can later be replayed with asciinema play and/or uploaded to asciinema server with asciinema upload. If the filename argument is given then the resulting recording (called asciicast) is saved to a local file. If the filename argument is omitted then (after asking for confirmation) the resulting asciicast is uploaded to asciinema-server ( ) (by default to ), where it can be watched and shared. If the recorded process is not a shell then recording finishes when the process exits. ![]() Recording finishes when you exit the shell (hit Ctrl+D or type exit). This is useful when you want to execute some commands during the recording session that should not be captured (e.g. pasting secrets). You can temporarily pause recording of terminal by pressing Ctrl+\. The command (process) that is recorded can be specified with -c option (see below), and defaults to $SHELL which is what you want in most cases. rec īy running asciinema rec you start a new recording session. When you run asciinema with no arguments a help message is displayed, listing all available commands with their options. CommandsĪsciinema is composed of multiple commands, similar to git, apt-get or brew. asciinema is Free and Open Source Software licensed under the GNU General Public License v3.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |