accelr8 3.6.0 → 3.6.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/dist/chunks/{app-P2DXCFXJ.js → app-RLI7EJGK.js} +8 -11
- package/dist/chunks/{chunk-AYM2QXJ4.js → chunk-HXMWH7DE.js} +1 -1
- package/dist/chunks/{client-QLZ32S6H.js → client-HEB5PQCT.js} +1 -1
- package/dist/chunks/{server-YHDE4A3E.js → server-43CHBWWU.js} +1 -1
- package/dist/cli.js +4 -4
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-HY6ULYGH.js";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SERVER
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HXMWH7DE.js";
|
|
10
10
|
|
|
11
11
|
// src/radio/app.ts
|
|
12
12
|
import tk from "terminal-kit";
|
|
@@ -4672,8 +4672,8 @@ function makeVignette4(def) {
|
|
|
4672
4672
|
durationMs: clamp4(totalMs, 18e3, 26e3),
|
|
4673
4673
|
frame(tMs, w, h) {
|
|
4674
4674
|
const out = new Array(w * h);
|
|
4675
|
-
const
|
|
4676
|
-
out.fill(
|
|
4675
|
+
const BG3 = { ch: " ", color: 16 };
|
|
4676
|
+
out.fill(BG3);
|
|
4677
4677
|
if (w <= 0 || h <= 0) return out;
|
|
4678
4678
|
const setCell = (x, y, ch, color) => {
|
|
4679
4679
|
if (x >= 0 && x < w && y >= 0 && y < h) out[y * w + x] = { ch, color };
|
|
@@ -5697,26 +5697,23 @@ function drawVolToast() {
|
|
|
5697
5697
|
for (let i = 0; i < s.length && x + i < screen.width; i++)
|
|
5698
5698
|
screen.put({ x: x + i, y, attr: { color: 231, bgColor: 16, bold: true }, dx: 1, dy: 0, wrap: false }, s[i]);
|
|
5699
5699
|
}
|
|
5700
|
+
var BG2 = 16;
|
|
5700
5701
|
function blitVideo() {
|
|
5701
5702
|
const w = screen.width, h = screen.height;
|
|
5702
5703
|
if (lastFrame && frameW === w && frameH === h) {
|
|
5703
5704
|
for (let y = 0; y < h; y++) {
|
|
5704
5705
|
for (let x = 0; x < w; x++) {
|
|
5705
5706
|
const c = lastFrame[y * w + x];
|
|
5706
|
-
if (c) screen.put({ x, y, attr: { color: c.color, bgColor:
|
|
5707
|
+
if (c) screen.put({ x, y, attr: { color: c.color, bgColor: BG2 }, dx: 1, dy: 0, wrap: false }, c.ch);
|
|
5707
5708
|
}
|
|
5708
5709
|
}
|
|
5709
5710
|
} else {
|
|
5710
5711
|
for (let y = 0; y < h; y++)
|
|
5711
|
-
screen.put({ x: 0, y, attr: { color:
|
|
5712
|
+
screen.put({ x: 0, y, attr: { color: BG2, bgColor: BG2 }, dx: 1, dy: 0, wrap: false }, " ".repeat(w));
|
|
5712
5713
|
}
|
|
5713
5714
|
}
|
|
5714
|
-
function videoColorAt(
|
|
5715
|
-
|
|
5716
|
-
const c = lastFrame[y * frameW + x];
|
|
5717
|
-
if (c) return c.color;
|
|
5718
|
-
}
|
|
5719
|
-
return 233;
|
|
5715
|
+
function videoColorAt(_x, _y) {
|
|
5716
|
+
return BG2;
|
|
5720
5717
|
}
|
|
5721
5718
|
function blitOverlay(cells) {
|
|
5722
5719
|
const w = screen.width, h = screen.height;
|
package/dist/cli.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
DEFAULT_SERVER,
|
|
4
4
|
PORT,
|
|
5
5
|
VERSION
|
|
6
|
-
} from "./chunks/chunk-
|
|
6
|
+
} from "./chunks/chunk-HXMWH7DE.js";
|
|
7
7
|
|
|
8
8
|
// src/cli.ts
|
|
9
9
|
var HELP = `
|
|
@@ -53,7 +53,7 @@ async function main() {
|
|
|
53
53
|
console.error(`invalid port: ${argVal(args, "--port")}`);
|
|
54
54
|
process.exit(1);
|
|
55
55
|
}
|
|
56
|
-
const { runServer } = await import("./chunks/server-
|
|
56
|
+
const { runServer } = await import("./chunks/server-43CHBWWU.js");
|
|
57
57
|
runServer(port);
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
@@ -67,7 +67,7 @@ async function main() {
|
|
|
67
67
|
console.error("accelr8 radio needs an interactive terminal (TTY).");
|
|
68
68
|
process.exit(1);
|
|
69
69
|
}
|
|
70
|
-
const { runRadio } = await import("./chunks/app-
|
|
70
|
+
const { runRadio } = await import("./chunks/app-RLI7EJGK.js");
|
|
71
71
|
runRadio({
|
|
72
72
|
name: argVal(args, "--name"),
|
|
73
73
|
server: argVal(args, "--server"),
|
|
@@ -90,7 +90,7 @@ async function main() {
|
|
|
90
90
|
const { cachedUpdate, refreshUpdateCache } = await import("./chunks/update-UEPNGB6Y.js");
|
|
91
91
|
refreshUpdateCache();
|
|
92
92
|
const update = cachedUpdate(VERSION);
|
|
93
|
-
const { runClient } = await import("./chunks/client-
|
|
93
|
+
const { runClient } = await import("./chunks/client-HEB5PQCT.js");
|
|
94
94
|
runClient({
|
|
95
95
|
name: argVal(args, "--name"),
|
|
96
96
|
server: argVal(args, "--server"),
|