bombillazo
bombillazo4mo ago

How to log Deno.Command output in real time (not after command completes)

Hello, is there a guide on how to log stdout with a Deno.Command is running, not just after it completes?
3 Replies
bombillazo
bombillazoOP4mo ago
thanks, I did somehitn similar now, with a loop that just reads from the stdout reader. A bit unrelated but is tehre any way to use the io Write funciton to write to teh start of the terminal line? Or better yet how can I move the terminal cursor to the start after each new line?
marvinh.
marvinh.4mo ago
you're looking for ANSI escape sequences which, among things like color, can also be used to position the cursor https://tldp.org/HOWTO/Bash-Prompt-HOWTO/x361.html