Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qo/term
emulate terminal screenshots in typst
https://github.com/qo/term
Last synced: 6 days ago
JSON representation
emulate terminal screenshots in typst
- Host: GitHub
- URL: https://github.com/qo/term
- Owner: qo
- Created: 2023-12-03T18:40:54.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-31T22:39:48.000Z (9 months ago)
- Last Synced: 2024-08-02T06:16:48.141Z (3 months ago)
- Language: Typst
- Homepage:
- Size: 57.6 KB
- Stars: 18
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-typst - term - A Typst package for creating figures that emulate terminal screenshots. (Templates & Libraries / Formatting)
README
# what
[Typst](https://github.com/typst/typst) template for emulating terminal screenshots
# how
## input
```typst
#import "term.typ": term#term(
content: [`$ ls
term.typ`],
)
```## output
# why
- no need to take screenshots
- no need to store screenshots
- vector graphics instead of raster# how (in-depth)
## download the template
```
curl https://raw.githubusercontent.com/qo/term/main/term.typ --output term.typ
```## import it wherever you want it
```typst
#import "term.typ": term
```## pass the `content` parameter to the `term` function
# examples
examples can be found in `examples` directory