1/// A small demonstration of the Input API.
2/// This prints embedded bytes with a custom header and then reads from STDIN.
3use bat::{Input, PrettyPrinter};
11 Input::from_bytes(b"echo 'Hello World!'")
13 .title("An embedded shell script.")
15 Input::from_stdin().title("Standard Input").kind("FD"),
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list