gpui-terminal
A terminal emulator component for GPUI applications. Uses alacritty_terminal for VTE parsing.
Features
- Full ANSI escape sequence support
- 16 ANSI colors, 256-color mode, and 24-bit true color
- Bold, italic, and underline text styles
- Keyboard input with application cursor mode (vim/tmux compatible)
- Clipboard integration via OSC 52
- Dynamic configuration (font size, colors)
- Push-based async I/O
- Accepts any
Read/Writestreams (not tied to a specific PTY library)
Usage
use ;
// Create terminal with PTY reader/writer
let terminal = cx.new;
See src/main.rs for a complete example using portable-pty.
Configuration
let colors = builder
.background
.foreground
.cursor
.black
// ... other colors
.build;
let config = TerminalConfig ;
Current Limitations
- Mouse text selection not yet implemented
- No scrollback navigation
License
MIT OR Apache-2.0