Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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