Proper way(s) to write to the output port in a console application?

bakgatviooldoos
Mon, 03 Feb 2025 11:07:52 +0000
Questions & Answers

Hi, Racket Discourse.

I am busy fiddling around with a command-line script, and I am wondering what I am doing wrong with the "dynamic" display to the terminal's output. I am running on a kali linux instance, for what it is worth.

Below is an example of the code for and running of the animated text:

Which is required and started from the main script.

This works fine and has the intended effect. Now I would like to add the number of seconds and minutes the particular command has been busy, but the "backspace" character-method from the above does not seem to work all the way.

Notice in the output how the leftover 01s remain there after the okay when waiting ends:

I can imagine that the #\backspaces might not be doing what I expect, since text can be tricky to say the least.

How do you usually do dynamic text animations in Racket cli applications?

4 posts - 3 participants

Read full topic