mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 11:48:13 +01:00
Add timestamp attr example v2 headers in doc
This commit is contained in:
@@ -38,7 +38,7 @@ The following meta-data is **optional** in asciicast v2:
|
|||||||
|
|
||||||
Example meta-data line:
|
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
|
## 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:
|
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"]
|
[0.248848, "o", "\u001b[1;31mHello \u001b[32mWorld!\u001b[0m\n"]
|
||||||
[1.001376, "o", "This is overwritten\rThis is better."]
|
[1.001376, "o", "This is overwritten\rThis is better."]
|
||||||
[2.143733, "o", " "]
|
[2.143733, "o", " "]
|
||||||
|
|||||||
Reference in New Issue
Block a user