ghostty-web 0.3.0-next.2.gfcdee7f → 0.3.0-next.20.g779b648
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -10
- package/dist/ghostty-vt.wasm +0 -0
- package/dist/ghostty-web.js +1208 -1114
- package/dist/ghostty-web.umd.cjs +5 -5
- package/dist/index.d.ts +409 -322
- package/ghostty-vt.wasm +0 -0
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -2,19 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://npmjs.com/package/ghostty-web) [](https://npmjs.com/package/ghostty-web) [](https://npmjs.com/package/ghostty-web) [](./LICENSE)
|
|
4
4
|
|
|
5
|
-
[Ghostty](https://github.com/ghostty-org/ghostty) for the web with [xterm.js](https://github.com/xtermjs/xterm.js) API compatibility — giving you a proper VT100 implementation in the browser
|
|
5
|
+
[Ghostty](https://github.com/ghostty-org/ghostty) for the web with [xterm.js](https://github.com/xtermjs/xterm.js) API compatibility — giving you a proper VT100 implementation in the browser.
|
|
6
6
|
|
|
7
7
|
- Migrate from xterm by changing your import: `@xterm/xterm` → `ghostty-web`
|
|
8
8
|
- WASM-compiled parser from Ghostty—the same code that runs the native app
|
|
9
9
|
- Zero runtime dependencies, ~400KB WASM bundle
|
|
10
10
|
|
|
11
|
+
Originally created for [Mux](https://github.com/coder/mux) (a desktop app for isolated, parallel agentic development), but designed to be used anywhere.
|
|
12
|
+
|
|
11
13
|
## Try It
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
- [Live Demo](https://ghostty.ondis.co) on an ephemeral VM (thank you to Greg from [disco.cloud](https://disco.cloud) for hosting).
|
|
16
|
+
|
|
17
|
+
- On your computer:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npx @ghostty-web/demo@next
|
|
21
|
+
```
|
|
16
22
|
|
|
17
|
-
This starts a local HTTP server with a real shell on `http://localhost:8080`. Works best on Linux and macOS.
|
|
23
|
+
This starts a local HTTP server with a real shell on `http://localhost:8080`. Works best on Linux and macOS.
|
|
18
24
|
|
|
19
25
|

|
|
20
26
|
|
|
@@ -22,11 +28,10 @@ This starts a local HTTP server with a real shell on `http://localhost:8080`. Wo
|
|
|
22
28
|
|
|
23
29
|
xterm.js is everywhere—VS Code, Hyper, countless web terminals. But it has fundamental issues:
|
|
24
30
|
|
|
25
|
-
| Issue | xterm.js
|
|
26
|
-
| ---------------------------------------- |
|
|
27
|
-
| **
|
|
28
|
-
| **
|
|
29
|
-
| **XTPUSHSGR/XTPOPSGR** | [Not supported](https://github.com/xtermjs/xterm.js/issues/2570) | ✓ Full support |
|
|
31
|
+
| Issue | xterm.js | ghostty-web |
|
|
32
|
+
| ---------------------------------------- | ---------------------------------------------------------------- | -------------------------- |
|
|
33
|
+
| **Complex scripts** (Devanagari, Arabic) | Rendering issues | ✓ Proper grapheme handling |
|
|
34
|
+
| **XTPUSHSGR/XTPOPSGR** | [Not supported](https://github.com/xtermjs/xterm.js/issues/2570) | ✓ Full support |
|
|
30
35
|
|
|
31
36
|
xterm.js reimplements terminal emulation in JavaScript. Every escape sequence, every edge case, every Unicode quirk—all hand-coded. Ghostty's emulator is the same battle-tested code that runs the native Ghostty app.
|
|
32
37
|
|
package/dist/ghostty-vt.wasm
CHANGED
|
Binary file
|