gaybro8777 / goscript

Simple tool to record a terminal session

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Goscript

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.

Demo

demo

A demo video of a recorded session can be found here and its corresponding typescript.html

Build

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

Similar projects

Bellow I'm listing some similar projects that I know of, and how goscript relates to them.

  • script - the linux command part of util-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.

Resources

About

Simple tool to record a terminal session


Languages

Language:JavaScript 96.8%Language:CSS 2.8%Language:Go 0.3%Language:Makefile 0.1%Language:HTML 0.0%