company size fix

This commit is contained in:
2024-05-29 10:37:08 -04:00
parent 84d8648d53
commit e0963ef940
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ export function numsToSizes(...nums) {
const ranges = nums.map(findRangeIndex);
if (ranges.includes(-1)) throw `${nums} CONTAINS AN INVALID RANGE!`;
return `[${ranges.join(",")}]`;
return `${ranges.join(",")}`;
}
+3 -2
View File
@@ -38,8 +38,9 @@ export class LoadingBar {
this.size = size;
this.cursor = 0;
this.timer = null;
this.y = process.stdout.rows;
cursorTo(process.stdout, this.cursor);
cursorTo(process.stdout, this.cursor, this.y);
// draw the initial outline
process.stdout.write("\x1B[?25l");
@@ -49,7 +50,7 @@ export class LoadingBar {
}
increment(amt = 1) {
cursorTo(process.stdout, this.cursor);
cursorTo(process.stdout, this.cursor, this.y);
for (let i = 0; i < amt; i++) process.stdout.write("\u2588");
this.cursor += amt;
}