@taj-special/dravix-code 1.4.4 → 1.4.5
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/cli/index.js +6 -2
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -269,8 +269,12 @@ async function main() {
|
|
|
269
269
|
process.exit(0);
|
|
270
270
|
}
|
|
271
271
|
markProjectVisited(pHash);
|
|
272
|
-
//
|
|
273
|
-
process.stdout.
|
|
272
|
+
// Erase dialog: move cursor to each line and overwrite with spaces
|
|
273
|
+
const termCols = process.stdout.columns ?? 80;
|
|
274
|
+
const blank = ' '.repeat(termCols);
|
|
275
|
+
for (let i = 1; i <= 13; i++)
|
|
276
|
+
process.stdout.write(`\x1b[${i};1H${blank}`);
|
|
277
|
+
process.stdout.write('\x1b[1;1H');
|
|
274
278
|
}
|
|
275
279
|
const rows = process.stdout.rows ?? 24;
|
|
276
280
|
const cols = process.stdout.columns ?? 80;
|