Skip to content

Commit 09b3a18

Browse files
committed
readme mention record
1 parent 3bb9919 commit 09b3a18

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ starts automatically on the first command if not already running.
4949
--rows, -r <rows> Terminal height (default: 24)
5050
--cwd, -d <path> Working directory
5151
--env <KEY=VALUE> Set environment variable (repeatable)
52+
--record <path> Record session to asciicast v2 file (.cast)
5253

5354
Session names must match `[a-zA-Z0-9_-]{1,64}`.
5455
If no shell is given, the default login shell is used.
@@ -57,8 +58,13 @@ If no shell is given, the default login shell is used.
5758
bootty spawn --name dev bash
5859
bootty spawn --cols 120 --rows 40 /bin/sh -c "make && ./run"
5960
bootty spawn --env EDITOR=vim --env LANG=en_US.UTF-8
61+
bootty spawn --record /tmp/session.cast bash
6062
```
6163

64+
The `--record` flag writes all PTY output to an
65+
[asciicast v2](https://docs.asciinema.org/manual/asciicast/v2/) file that
66+
can be played back with `asciinema play` or embedded in web pages.
67+
6268
### type
6369

6470
Send raw text to the terminal. Characters are written directly to the PTY.
@@ -114,6 +120,7 @@ Formats: `text` (default), `json`, `html`, `vt`.
114120
bootty screenshot
115121
bootty screenshot --format json
116122
bootty screenshot --format html > output.html
123+
bootty screenshot --format vt
117124
```
118125

119126
### wait

0 commit comments

Comments
 (0)