mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-17 20:05:09 +00:00
feat(inspector): replace xterm.js with ghostty-web
- Replace @xterm/xterm, @xterm/addon-fit, and @xterm/addon-web-links with ghostty-web - Update Terminal component to use ghostty-web API: - Add async WASM initialization via init() - Use FitAddon with observeResize() for auto-fitting - Use onResize callback for terminal resize events - ghostty-web is API-compatible with xterm.js but uses Ghostty's WASM-compiled VT100 parser - Benefits: - Better rendering of complex scripts (Devanagari, Arabic) - XTPUSHSGR/XTPOPSGR support - Same battle-tested code as native Ghostty app Ref: https://github.com/coder/ghostty-web
This commit is contained in:
parent
ac0a22cd07
commit
1d1069d6fb
3 changed files with 128 additions and 110 deletions
|
|
@ -22,8 +22,6 @@
|
|||
"lucide-react": "^0.469.0",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"@xterm/xterm": "^5.5.0",
|
||||
"@xterm/addon-fit": "^0.10.0",
|
||||
"@xterm/addon-web-links": "^0.11.0"
|
||||
"ghostty-web": "^0.3.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue