elvish/website/ttyshot
Qi Xiao 89bf4b19ef website/learn: Add new "quick tour" doc.
Also remove the cookbook doc as it is superseded by this new doc.
2021-03-26 15:16:43 +00:00
..
fundamentals website: Restructure directory. 2020-06-14 13:56:58 +01:00
tour website/learn: Add new "quick tour" doc. 2021-03-26 15:16:43 +00:00
completion-mode.html website/learn: Update cookbook. 2020-08-31 21:09:40 +01:00
control-structures.html website: Restructure directory. 2020-06-14 13:56:58 +01:00
histlist-mode.html website: Restructure directory. 2020-06-14 13:56:58 +01:00
location-mode.html website: Restructure directory. 2020-06-14 13:56:58 +01:00
navigation-mode.html website: Restructure directory. 2020-06-14 13:56:58 +01:00
pipelines.html website: Update first ttyshot to avoid deprecated "explode". 2020-08-16 21:24:33 +01:00
README.md website: Restructure directory. 2020-06-14 13:56:58 +01:00

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:

  1. Modify edit:rprompt to pretend that the username is elf and the hostname is host:

    edit:rprompt = (constantly (styled 'elf@host' inverse))
    
  2. Add a keybinding for taking ttyshots:

    edit:insert:binding[Alt-x] = { edit:-dump-buf > ~/ttyshot.html }
    
  3. Make sure that the terminal width is 58, to be consistent with existing ttyshots.

  4. Put Elvish in the state you want, and press Alt-X. The ttyshot is saved at ~/ttyshot.html.