github.com/elves/elvish@v0.15.0/website/ttyshot/README.md (about) 1 This directory contains "ttyshots" -- they are like screenshots, but taken on 2 terminals. They are taken with Elvish's undocumented `edit:-dump-buf` function. 3 To take one, use the following procedure: 4 5 1. Modify `edit:rprompt` to pretend that the username is `elf` and the hostname 6 is `host`: 7 8 ```elvish 9 edit:rprompt = (constantly (styled 'elf@host' inverse)) 10 ``` 11 12 2. Add a keybinding for taking ttyshots: 13 14 ```elvish 15 edit:insert:binding[Alt-x] = { edit:-dump-buf > ~/ttyshot.html } 16 ``` 17 18 3. Make sure that the terminal width is 58, to be consistent with existing 19 ttyshots. 20 21 4. Put Elvish in the state you want, and press Alt-X. The ttyshot is saved at 22 `~/ttyshot.html`.