custom lint rule for no logfile calls
initial package setup
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user