vt100.js 0.3.0 → 0.3.1
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 +13 -14
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,15 +6,17 @@ Part of the [vterm](https://github.com/beorn/vterm) monorepo.
|
|
|
6
6
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
- SGR attributes
|
|
11
|
-
-
|
|
12
|
-
- Cursor
|
|
13
|
-
-
|
|
9
|
+
- Strict DEC VT100 (1978) emulation — monochrome display
|
|
10
|
+
- SGR attributes: bold, underline (boolean), blink, inverse
|
|
11
|
+
- Cursor movement (CUP, CUU, CUD, CUF, CUB, CHA, CNL, CPL, HVP, VPA)
|
|
12
|
+
- Cursor save/restore (DECSC/DECRC)
|
|
13
|
+
- Erase display/line (ED/EL)
|
|
14
14
|
- Scroll regions (DECSTBM) with content preservation
|
|
15
|
+
- Scroll up/down (SU/SD)
|
|
15
16
|
- Scrollback buffer with configurable limit
|
|
16
|
-
-
|
|
17
|
-
-
|
|
17
|
+
- Screen modes (auto-wrap, origin mode, cursor visibility)
|
|
18
|
+
- DEC special graphics charset
|
|
19
|
+
- DA1/DSR/CPR device responses
|
|
18
20
|
- Zero dependencies — works in Bun, Node.js, and browsers
|
|
19
21
|
|
|
20
22
|
## Install
|
|
@@ -70,16 +72,13 @@ console.log(screen.getCursorPosition()) // { x: 18, y: 0 }
|
|
|
70
72
|
```typescript
|
|
71
73
|
interface ScreenCell {
|
|
72
74
|
char: string
|
|
73
|
-
fg: CellColor | null //
|
|
74
|
-
bg: CellColor | null
|
|
75
|
+
fg: CellColor | null // always null (VT100 is monochrome)
|
|
76
|
+
bg: CellColor | null // always null (VT100 is monochrome)
|
|
75
77
|
bold: boolean
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
underline: "none" | "single" | "double" | "curly" | "dotted" | "dashed"
|
|
79
|
-
strikethrough: boolean
|
|
78
|
+
underline: boolean
|
|
79
|
+
blink: boolean
|
|
80
80
|
inverse: boolean
|
|
81
81
|
hidden: boolean
|
|
82
|
-
wide: boolean
|
|
83
82
|
}
|
|
84
83
|
```
|
|
85
84
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vt100.js",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "VT100 terminal emulator — monochrome, cursor, scroll regions. Pure TypeScript, zero dependencies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ansi",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"homepage": "https://github.com/beorn/vterm/tree/main/packages/vt100",
|
|
15
15
|
"bugs": "https://github.com/beorn/vterm/issues",
|
|
16
16
|
"license": "MIT",
|
|
17
|
-
"author": "
|
|
17
|
+
"author": "Bjørn Stabell",
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
20
|
"url": "https://github.com/beorn/vterm.git",
|