# retroglyph-terminal-wasm > WASM/browser terminal backend for retroglyph, driven by pushed events and pulled ANSI output **Version:** 0.0.0 **Authors:** Matan Lurey **License:** MIT **Repository:** https://github.com/crates-lurey-io/retroglyph **Keywords:** roguelike, terminal, grid, gamedev Generated: 2026-08-05 20:21:10 UTC Created by: [cargo-llms-txt](https://github.com/masinc/cargo-llms-txt) ## Core Documentation - [Complete API Documentation](llms-full.txt): Full public API documentation with detailed descriptions - [README](README.md): Project overview and getting started guide - [Cargo.toml](Cargo.toml): Project configuration and dependencies ## Table of Contents ### src/lib.rs - impl io::Write for Utf8Sink - pub struct TerminalWasm - impl TerminalWasm - pub fn resize_terminal - impl Output for TerminalWasm - impl Input for TerminalWasm - impl Cursor for TerminalWasm - pub fn decode_key_event - pub fn decode_mouse_event - pub mod mouse_actions - pub const mouse_actions::DOWN - pub const mouse_actions::UP - pub const mouse_actions::MOVED - pub const mouse_actions::SCROLL_UP - pub const mouse_actions::SCROLL_DOWN - pub mod mouse_buttons - pub const mouse_buttons::LEFT - pub const mouse_buttons::MIDDLE - pub const mouse_buttons::RIGHT - pub mod key_codes - pub const key_codes::BACKSPACE - pub const key_codes::ENTER - pub const key_codes::LEFT - pub const key_codes::RIGHT - pub const key_codes::UP - pub const key_codes::DOWN - pub const key_codes::HOME - pub const key_codes::END - pub const key_codes::PAGE_UP - pub const key_codes::PAGE_DOWN - pub const key_codes::TAB - pub const key_codes::BACKTAB - pub const key_codes::DELETE - pub const key_codes::INSERT - pub const key_codes::ESCAPE - pub const key_codes::F1 - pub const key_codes::F24 - pub mod wasm - pub fn wasm::wasm_terminal_new - pub fn wasm::wasm_terminal_free - pub fn wasm::wasm_terminal_resize - pub fn wasm::wasm_terminal_push_key - pub fn wasm::wasm_terminal_push_mouse - pub fn wasm::wasm_terminal_push_paste - pub fn wasm::wasm_terminal_push_focus - pub fn wasm::wasm_terminal_take_output - impl retroglyph_core::testing::conformance::Observable for tests::TerminalWasm ### src/app_entry.rs - app_entry! --- ## README.md ### retroglyph-terminal-wasm WASM/browser terminal backend for retroglyph, driven by pushed events and pulled ANSI output Part of the [retroglyph](https://github.com/crates-lurey-io/retroglyph) workspace. ## Cargo.toml ```toml [package] name = "retroglyph-terminal-wasm" version = "0.0.0" edition = "2024" description = "WASM/browser terminal backend for retroglyph, driven by pushed events and pulled ANSI output" license = "MIT" repository = "https://github.com/crates-lurey-io/retroglyph" keywords = ["roguelike","terminal","grid","gamedev"] categories = ["game-development","graphics"] authors = ["Matan Lurey "] ```