Function for clearing console in Juno



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)



In the Repl, ctrl-L should work.


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.


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


That works. Thanks.