mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
rmduplicates logging improvement
This commit is contained in:
@@ -423,7 +423,8 @@ function log(text) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function writeInSameLine(text, returnToLineStart) {
|
function writeInSameLine(text, returnToLineStart) {
|
||||||
// TODO: clear line before
|
process.stdout.clearLine()
|
||||||
|
process.stdout.cursorTo(0)
|
||||||
process.stdout.write(text)
|
process.stdout.write(text)
|
||||||
if (returnToLineStart) {
|
if (returnToLineStart) {
|
||||||
process.stdout.write('\r')
|
process.stdout.write('\r')
|
||||||
|
Reference in New Issue
Block a user