proxy.golang.org : github.com/b-per/vhs
Package vhs keys.go defines the key map for the Type command. The `keymap` map is used to convert runes from a string into the appropriate go-rod input. Type Hello, world! The above command will type the string "Hello, world!" into the terminal, by converting each rune into the correct input. Hello, world! { shift(input.KeyH), input.KeyE, ..., input.KeyD, shift(input.Digit1) } Package main theme.go contains the information about a terminal theme. It stores the 16 base colors as well as the background and foreground colors of the terminal theme. It can be changed through the Set command. Set Theme {"background": "#171717"} Set Theme "Catppuccin Mocha" Package vhs tty.go spawns the ttyd process. It runs on the specified port and is generally meant to run in the background so that other processes (go-rod) can connect to the tty. xterm.js is used for rendering the terminal and can be adjusted using the Set command. Set FontFamily "DejaVu Sans Mono" Set FontSize 12 Set Padding 50 Package vhs video.go spawns the ffmpeg process to convert the frames, collected by go-rod's screenshots into the input folder, to a GIF, WebM, MP4. MakeGIF takes several options to modify the behaviour of the ffmpeg process, which can be configured through the Set command. Set MaxColors 256
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/b-per/vhs
License: MIT
Latest release: about 1 year ago
First release: over 2 years ago
Namespace: github.com/b-per
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 20 days ago