What problem does it solve?
This skill provides comprehensive, expert-level guidance for implementing custom terminal features in VS Code extensions, unifying xterm.js details with VS Code's architecture. It simplifies complex tasks like PTY integration, performance optimization, and session persistence, saving developers extensive research and development time.
Core Features & Use Cases
- xterm.js Setup & Addons: Configure basic terminals, enable WebGL rendering, and integrate addons like Fit and Serialize.
- PTY Integration: Manage pseudo-terminal processes for robust shell interaction and flow control.
- Session Persistence: Save and restore terminal scrollback content for seamless user experience.
- Use Case: Create a custom VS Code terminal that supports GPU acceleration, persists its scrollback content across sessions, and integrates with shell commands using OSC 633 sequences for enhanced functionality.
Quick Start
Use the terminal-expert skill to set up a basic xterm.js terminal instance with the FitAddon and WebglAddon, ensuring it resizes automatically to its container.