@taj-special/dravix-code 1.4.3 → 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
|
@@ -79,8 +79,6 @@ async function showFirstTimeDialog(projectName) {
|
|
|
79
79
|
}
|
|
80
80
|
function cleanup() {
|
|
81
81
|
process.stdin.removeListener('data', onKey);
|
|
82
|
-
process.stdin.setRawMode(false);
|
|
83
|
-
process.stdin.pause();
|
|
84
82
|
}
|
|
85
83
|
process.stdin.on('data', onKey);
|
|
86
84
|
});
|
|
@@ -271,6 +269,12 @@ async function main() {
|
|
|
271
269
|
process.exit(0);
|
|
272
270
|
}
|
|
273
271
|
markProjectVisited(pHash);
|
|
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;
|