How clear the printed content in terminal and print to the same line?

Yes, the package cannot be accused of being overdocumented :wink: I would try something like

import REPL.Terminals
terminal = Terminals.TTYTerminal("", stdin, stdout, stderr)

function f(terminal)
    print("this message will self-destruct in 5 seconds")
    sleep(5)
    REPL.Terminals.clear_line(terminal)
    print("bang")
end

f(terminal)

but I am not an expert on this.

6 Likes