mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-01 08:42:55 +08:00
89bf4b19ef
Also remove the cookbook doc as it is superseded by this new doc. |
||
---|---|---|
.. | ||
fundamentals | ||
tour | ||
completion-mode.html | ||
control-structures.html | ||
histlist-mode.html | ||
location-mode.html | ||
navigation-mode.html | ||
pipelines.html | ||
README.md |
This directory contains "ttyshots" -- they are like screenshots, but taken on
terminals. They are taken with Elvish's undocumented edit:-dump-buf
function.
To take one, use the following procedure:
-
Modify
edit:rprompt
to pretend that the username iself
and the hostname ishost
:edit:rprompt = (constantly (styled 'elf@host' inverse))
-
Add a keybinding for taking ttyshots:
edit:insert:binding[Alt-x] = { edit:-dump-buf > ~/ttyshot.html }
-
Make sure that the terminal width is 58, to be consistent with existing ttyshots.
-
Put Elvish in the state you want, and press Alt-X. The ttyshot is saved at
~/ttyshot.html
.