feat(web): add xterm terminal panel (#5)
Use @xterm/xterm for terminal emulation and its official @xterm/addon-fit for container sizing. Lazy-load both on first open to keep them out of the main bundle. Preserve the mounted terminal on collapse and offer explicit reconnect; provide an echo transport for demos.
This commit is contained in:
@@ -17,7 +17,9 @@
|
||||
"@codemirror/lang-markdown": "^6.3.1",
|
||||
"@codemirror/view": "^6.35.0",
|
||||
"codemirror": "^6.0.1",
|
||||
"highlight.js": "^11.10.0"
|
||||
"highlight.js": "^11.10.0",
|
||||
"@xterm/xterm": "^5.5.0",
|
||||
"@xterm/addon-fit": "^0.10.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "^18.3.12",
|
||||
|
||||
Reference in New Issue
Block a user