vtac-terminal 1.2.1 → 1.3.0

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.
@@ -0,0 +1,54 @@
1
+ export declare class VTAC {
2
+ static COLUMNS: number;
3
+ static ROWS: number;
4
+ static WIDTH: number;
5
+ static HEIGHT: number;
6
+ buffer: Buffer<ArrayBuffer>;
7
+ mode: 'text' | 'graphics';
8
+ column: number;
9
+ row: number;
10
+ offset: number;
11
+ columnNextByte: boolean;
12
+ rowNextByte: boolean;
13
+ cursorChar: number;
14
+ cursorMode: 'solid' | 'blinking';
15
+ cursorCharNextByte: boolean;
16
+ bellDuration: number;
17
+ bellFrequency: number;
18
+ bellDurationNextByte: boolean;
19
+ bellFrequencyNextByte: boolean;
20
+ bellQueue: Array<{
21
+ frequency: number;
22
+ duration: number;
23
+ }>;
24
+ dataNextByte: boolean;
25
+ foregroundColor: number;
26
+ backgroundColor: number;
27
+ foregroundColorNextByte: boolean;
28
+ backgroundColorNextByte: boolean;
29
+ reset: () => void;
30
+ bell: () => void;
31
+ getNextBell: () => {
32
+ frequency: number;
33
+ duration: number;
34
+ } | undefined;
35
+ hasQueuedBells: () => boolean;
36
+ backspace: () => void;
37
+ tab: () => void;
38
+ lineFeed: () => void;
39
+ carriageReturn: () => void;
40
+ deleteTo: (destination: "startOfLine" | "endOfLine" | "startOfScreen" | "endOfScreen") => void;
41
+ scroll: (direction: "left" | "right" | "up" | "down") => void;
42
+ cursor: (direction: "left" | "right" | "up" | "down") => void;
43
+ delete: () => void;
44
+ data: (data: number) => void;
45
+ insertTextData: (data: number) => void;
46
+ insertGraphicsData: (data: number) => void;
47
+ copyCharacterCell: (sourceCol: number, sourceRow: number, destCol: number, destRow: number) => void;
48
+ clearCharacterCell: (col: number, row: number) => void;
49
+ parse: (data: number) => void;
50
+ static NOTE_FREQUENCIES: {
51
+ [key: number]: number;
52
+ };
53
+ static CHARACTERS: number[][];
54
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ #! /usr/bin/env node
2
+ export {};
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ const fs_1 = require("fs");
10
10
  const sdl_1 = __importDefault(require("@kmamal/sdl"));
11
11
  const serialport_1 = require("serialport");
12
12
  const VTAC_1 = require("./VTAC/VTAC");
13
- const VERSION = '1.2.1';
13
+ const VERSION = '1.3.0';
14
14
  // Parse command line arguments
15
15
  const program = new commander_1.Command();
16
16
  program.showHelpAfterError();
package/dist/lib.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { VTAC } from './VTAC/VTAC';
package/dist/lib.js ADDED
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VTAC = void 0;
4
+ var VTAC_1 = require("./VTAC/VTAC");
5
+ Object.defineProperty(exports, "VTAC", { enumerable: true, get: function () { return VTAC_1.VTAC; } });
6
+ //# sourceMappingURL=lib.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lib.js","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":";;;AAAA,oCAAkC;AAAzB,4FAAA,IAAI,OAAA"}
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "vtac-terminal",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "description": "A fantasy ASCII terminal emulator",
5
- "main": "index.js",
5
+ "main": "dist/lib.js",
6
+ "types": "dist/lib.d.ts",
6
7
  "bin": {
7
8
  "vtac": "dist/index.js"
8
9
  },
@@ -43,7 +44,7 @@
43
44
  },
44
45
  "devDependencies": {
45
46
  "@types/jest": "^30.0.0",
46
- "@types/node": "^25.3.0",
47
+ "@types/node": "^25.3.3",
47
48
  "jest": "^30.2.0",
48
49
  "ts-jest": "^29.4.6",
49
50
  "typescript": "^5.9.3"
package/src/index.ts CHANGED
@@ -7,7 +7,7 @@ import sdl from '@kmamal/sdl'
7
7
  import { SerialPort } from 'serialport'
8
8
  import { VTAC } from './VTAC/VTAC'
9
9
 
10
- const VERSION = '1.2.1'
10
+ const VERSION = '1.3.0'
11
11
 
12
12
  // Parse command line arguments
13
13
  const program = new Command()
package/src/lib.ts ADDED
@@ -0,0 +1 @@
1
+ export { VTAC } from './VTAC/VTAC'
package/tsconfig.json CHANGED
@@ -7,6 +7,7 @@
7
7
  "module": "commonjs",
8
8
  "sourceMap": true,
9
9
  "esModuleInterop": true,
10
- "moduleResolution": "node"
10
+ "moduleResolution": "node",
11
+ "declaration": true
11
12
  }
12
13
  }