custom lint rule for no logfile calls

initial package setup
This commit is contained in:
2025-04-30 01:29:18 -06:00
parent 9535222fb7
commit 65f0b4e0b7
3 changed files with 40 additions and 5 deletions

View File

@@ -1,4 +1,3 @@
import { log } from "util/logfile.ts";
import { Cursor } from "./cursor.ts";
export class TerminalLayout {
@@ -80,7 +79,6 @@ export class TerminalLayout {
}
clearAll() {
log("clearAll");
Deno.stdout.writeSync(
new TextEncoder().encode(
TerminalLayout.ALT_BUFFER_DISABLE,
@@ -93,7 +91,6 @@ export class TerminalLayout {
}
clear() {
log("clear " + this.height);
for (let i = 0; i < this.height; i++) {
Deno.stdout.writeSync(new TextEncoder().encode("\x1b[2K\x1b[1E"));
}
@@ -220,7 +217,6 @@ export class TerminalBlock {
}
clear() {
log(this.renderedLineCount);
if (this.renderedLineCount === 0) return;
const moveCursor = `\x1b[${this.lastRenderRow};1H`;
Deno.stdout.writeSync(new TextEncoder().encode(moveCursor));