Function for clearing console in Juno


#1

Hi-

I am wondering if there is a way to clear the console in Juno via a function call. For example, it is possible to clear the REPL with the following function:

clear() = run(@static is_unix() ? clear : cmd /c cls)

Thanks.


#2

In the Repl, ctrl-L should work.


#3

Thanks. Unfortunately, for my particular problem, I need to clear the console in Juno with a function that is executed by my code. The function in my example above works for the REPL, but I haven’t been able to figure out how to do it in the Juno console.


#4

Perhaps this is late now, but I just found out that with the latest Juno you can use clearconsole().


#5

That works. Thanks.