Skip to content

Creates "human-made-like" asciinema ascii-casts out of the provided regular text file as if we would type it!

License

Notifications You must be signed in to change notification settings

swnuom/asciinemaze

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asciinemaze

Creates "human-made-like" asciinema ascii-casts out of the provided regular text file as if we would type it!

extensions

The input file can use the following special characters:

  1. ±: Line that contains prompt.
  2. §: Output of commands.
  3. &: Clears screen (if it is the only character in the line)
  4. ~: Wait a few seconds (if it is the only character in the line)

useful commands

The following command adds the special character § in all lines that do not start with ± (display at once all non prompt lines).

sed -i '/^±/!s/^/§/' input.txt

You can also do it for lines that do not have on character only (i.e., skip "clear screen" or "wait a few second" characters).

sed -i '/^±/!s/^.\\{2,\\}/§/' input.txt

The following command adds the special character ± at the beginning of all lines that contain character $ (there is a prompt).

sed -i '/\$/s/^/±/' input.txt

Demo

asciicast

About

Creates "human-made-like" asciinema ascii-casts out of the provided regular text file as if we would type it!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 84.6%
  • Shell 15.4%