Function for clearing console in Juno

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.

1 Like

In the Repl, ctrl-L should work.

2 Likes

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.

1 Like

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

3 Likes

That works. Thanks.

Thanks a lot. I was browing all night!