what

January 31, 2024 ยท View on GitHub

Typst template for emulating terminal screenshots

how

input

#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

#import "term.typ": term

pass the content parameter to the term function

examples

examples can be found in examples directory