Enable loading a page and overwriting its contents with a file

This commit is contained in:
2024-01-01 22:46:53 +11:00
parent a1bcc1f5cb
commit 0625691ae5
6 changed files with 26 additions and 22 deletions

View File

@@ -43,10 +43,12 @@ function rawtoattrs(contents,width,yoffset,xoffset,debug) {
// @todo temp hack, rework ansi variable - perhaps have a function that converts an attribute back into an ANSI sequence
var ansi = { i: 0, f: 37, b: 40 };
var line;
var x;
while (lines.length > 0) {
var x = 0;
var line = lines.shift();
x = 0;
line = lines.shift();
if ((debug !== undefined) && (y > debug)) {
exit(1);