{"repo":"asciinema/avt","free":true,"listed":false,"github":"https://github.com/asciinema/avt","clone":"git clone https://github.com/asciinema/avt.git","description":"asciinema virtual terminal","language":"Rust","stars":230,"topics":["rust","terminal","asciinema"],"license":"Apache-2.0","category":"cli-tools","readme_excerpt":"avt - asciinema virtual terminal avt is asciinema's implementation of virtual terminal emulator written in Rust. It is used by asciinema CLI, asciinema player, asciinema server and asciinema gif generator. This implementation covers only parsing and virtual buffer related aspects of a terminal emulator as it's all asciinema needs. avt consists of: - parser for ANSI-compatible video terminal based on excellent state diagram by Paul Williams, - virtual screen buffers (primary/alternate) in a form of character grid with additional color/styling attributes, - API for feeding text into the parser and for querying virtual screen buffer and cursor position. Following aspects of terminal emulation are not in scope of this project: - input handling, - rendering. While avt is small and focused, a full-fledged terminal emulator could potentially be built on top of it. avt doesn't try to 100% replicate any specific terminal variant like VT102 or VT520, instead it implements most control sequences supported by modern terminal emulators like xterm, Gnome Terminal, WezTerm, Alacritty, iTerm, Ghostty, mosh etc. Development To work on avt, first download the source code: The recommended way to get the toolchain is the Nix dev shell, which provides everything needed and just works: If you don't use Nix, you need the Rust toolchain (1.86 or later) with Cargo, installed via your system package manager or rustup. Then build the library with: To run the test suite: To run the benchmarks: If you'd ","default_branch":null,"files":null,"tree":[],"storefront":"/r/asciinema","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/asciinema/avt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}