Save idle-time-limit in asciicast v2 header

This commit is contained in:
Marcin Kulik
2017-10-26 13:24:28 +02:00
parent ac58f27a2e
commit 52d4f5bb98
2 changed files with 8 additions and 1 deletions

View File

@@ -100,7 +100,7 @@ class Recorder:
'width': cols,
'height': lines,
'timestamp': int(time.time()),
# TODO save max_wait here
'idle_time_limit': idle_time_limit,
}
if captured_env:

View File

@@ -54,6 +54,13 @@ Unix timestamp of the beginning of the recording session. Integer.
Duration of the whole recording in seconds (when it's known upfront). Float.
#### `idle_time_limit`
Idle time limit, as given via `-i` option to `asciinema rec`. Float.
This should be used by an asciicast player to reduce all terminal inactivity
(delays between frames) to maximum of `idle_time_limit` value.
#### `command`
Command that was recorded, as given via `-c` option to `asciinema rec`. String.