mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 11:48:13 +01:00
Option to override cols/rows of the recorded process
This adds `--cols <n>` / `--rows <n>` options to `rec` command. This disables autodection of terminal size, and reports fake fixed number of columns/rows to the recorded process.
This commit is contained in:
@@ -44,6 +44,6 @@ class TestRecord(Test):
|
||||
"; sys.stdout.write('bar')"
|
||||
),
|
||||
]
|
||||
asciinema.pty_.record(command, output)
|
||||
asciinema.pty_.record(command, output, lambda: (80, 24))
|
||||
|
||||
assert output.data == [b"foo", b"bar"]
|
||||
|
||||
Reference in New Issue
Block a user