Add timestamp attr example v2 headers in doc

This commit is contained in:
Marcin Kulik
2017-09-03 21:43:41 +02:00
parent 800b9c99de
commit 07fd11162d

View File

@@ -38,7 +38,7 @@ The following meta-data is **optional** in asciicast v2:
Example meta-data line:
{"version": 2, "width": 80, "height": 24, "command": "/bin/zsh", "title": null, "env": {"TERM": "xterm-256color", "SHELL": "/bin/zsh"}}
{"version": 2, "width": 80, "height": 24, "timestamp": 1504467315, "command": "/bin/zsh", "title": null, "env": {"TERM": "xterm-256color", "SHELL": "/bin/zsh"}}
## Event stream
@@ -101,7 +101,7 @@ not supported by current versions of the recorder and players
A very short asciicast v2 file looks like this:
{"version": 2, "width": 80, "height": 24, "command": "/bin/zsh", "title": "Demo", "env": {"TERM": "xterm-256color", "SHELL": "/bin/zsh"}}
{"version": 2, "width": 80, "height": 24, "timestamp": 1504467315, "command": "/bin/zsh", "title": "Demo", "env": {"TERM": "xterm-256color", "SHELL": "/bin/zsh"}}
[0.248848, "o", "\u001b[1;31mHello \u001b[32mWorld!\u001b[0m\n"]
[1.001376, "o", "This is overwritten\rThis is better."]
[2.143733, "o", " "]