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:
parent
3458324579
commit
984fd8ce9e
1 changed files with 2 additions and 1 deletions
|
@ -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')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue