Goscript is a tool that records the terminal session (well, any command you run it with) and saves the output in a self contained html file that can be run in the browser, to playback the session.
It is based on xterm.js project, with some hacks to disable the selection manager.
The project is just a toy and is far to be complete, or without issues.
A demo video of a recorded session can be found here and its corresponding typescript.html
If you want to make changes to the frontend (any files under ./frontend/
), install the node
modules:
cd goscript/frontend/
npm install
Build:
cd goscript
make
Bellow I'm listing some similar projects that I know of, and how goscript
relates to them.
script
- the linux command part ofutil-linux
package and which records the terminal session in a file. This is tool is available on most of Linux distributions and on OSX as well. The saved typescript can be played back with the same tool and only in the terminal.- asciinema - a nice tool that records your terminal session and it uploads it to the asciinema server, where it can be played back. The record can also be played back locally in the terminal, by the same tool. However, one needs to install the tool to play them back locally, so if you want to share the recoreded session with somebody you will have to upload it on the server, or they will have to install the tool, in order to play it back.