@kt3k/tku 1.0.10 → 1.0.11
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/main.js +3 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -240,7 +240,9 @@ async function main() {
|
|
|
240
240
|
const isTTY = process.stderr.isTTY;
|
|
241
241
|
function status(msg) {
|
|
242
242
|
if (isTTY) {
|
|
243
|
-
process.stderr.
|
|
243
|
+
const cols = process.stderr.columns || 80;
|
|
244
|
+
const truncated = msg.length > cols ? msg.slice(0, cols) : msg;
|
|
245
|
+
process.stderr.write(`\r\x1B[K${truncated}`);
|
|
244
246
|
}
|
|
245
247
|
}
|
|
246
248
|
function clearStatus() {
|