Yes, the package cannot be accused of being overdocumented 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.