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.
Files changed (2) hide show
  1. package/README.md +13 -14
  2. 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
- - Full VT100/ANSI escape sequence parsing
10
- - SGR attributes (bold, italic, underline styles, colors, strikethrough, etc.)
11
- - 16-color, 256-color, and 24-bit truecolor support
12
- - Cursor movement, save/restore (DECSC/DECRC)
13
- - Screen modes (alternate screen, auto-wrap, origin mode, etc.)
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
- - Insert/delete characters and lines
17
- - Wide character support (CJK, emoji)
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 // { r, g, b }
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
- faint: boolean
77
- italic: boolean
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.0",
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": "Beorn",
17
+ "author": "Bjørn Stabell",
18
18
  "repository": {
19
19
  "type": "git",
20
20
  "url": "https://github.com/beorn/vterm.git",