diff --git a/ROADMAP.md b/ROADMAP.md index 1e161a3..4057935 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -43,22 +43,29 @@ 0 4 * * * root docker exec flexinit-runner docker builder prune -f --keep-storage=5GB ``` -### Web-based TUI Support (HIGH) +### Web-based TUI Support (HIGH) - IN PROGRESS **Feature**: Full TUI (Terminal User Interface) support inside the web browser **Goal**: Enable rich terminal UI applications (like htop, lazygit, OpenCode TUI mode) to render correctly in the browser-based terminal. -**Components**: -- [ ] xterm.js integration with full TUI support (colors, mouse, resize) -- [ ] Proper TERM environment configuration (xterm-256color) -- [ ] Mouse event passthrough for TUI interactions -- [ ] Font/rendering optimization for box-drawing characters -- [ ] Keyboard shortcut handling (Ctrl+C, Ctrl+Z, etc.) +**Completed**: +- [x] TERM=xterm-256color environment variable +- [x] COLORTERM=truecolor for 24-bit color support +- [x] ncurses-base and ncurses-term packages for terminfo database +- [x] Locale configuration (en_US.UTF-8) for Unicode support +- [x] Environment variables passed to deployed stacks -**Technical Options**: -1. **Upgrade ttyd** - Ensure latest version with full xterm.js features -2. **Custom xterm.js wrapper** - More control over terminal emulation -3. **Gotty alternative** - Consider other web terminal solutions +**Remaining**: +- [ ] Test TUI applications in browser (htop, lazygit, vim) +- [ ] Verify mouse event passthrough works +- [ ] Test box-drawing character rendering +- [ ] Document TUI capabilities for users + +**Technical Notes**: +- OpenCode uses built-in xterm.js web terminal +- Terminal environment configured in Docker image + deployer +- 256 colors verified working (tput colors = 256) +- 104 xterm terminfo entries installed **Use Cases**: - OpenCode TUI mode in browser