toxyl / ossh

... is a dirty mix of honey and tar, delivered by a fake SSH server.
Other
2 stars 1 forks source link

Change capture format to asciicast v2 #9

Closed toxyl closed 2 years ago

toxyl commented 2 years ago

see https://github.com/asciinema/asciinema/blob/master/doc/asciicast-v2.md

example:

{"version": 2, "width": 80, "height": 24, "timestamp": 1504467315, "title": "Demo", "env": {"TERM": "xterm-256color", "SHELL": "/bin/zsh"}}
[0.248848, "o", "\u001b[1;31mHello \u001b[32mWorld!\u001b[0m\n"]
[1.001376, "o", "That was ok\rThis is better."]
[2.143733, "o", " "]
[6.541828, "o", "Bye!"]
toxyl commented 2 years ago

use https://github.com/asciinema/asciinema-player for playback

toxyl commented 2 years ago

Implemented in PR #10