Search code examples
ocamlledit

How should I do clear screen on ocaml toplevel?


I am using ocaml toplevel with ledit (ledit -l 100 ocaml) on Ubuntu 14.04. Since there is no way to do clear screen, all the time, I keep dwelling at the bottom of the screen.

I would like to know if there is a way to do clear screen at toplevel?

Thanks in advance.

Regards.


Solution

  • You could try:

    # Sys.command "clear";;
    

    However, it is normal to dwell at the bottom of the screen. The command line has worked this way for at least 30 years :-)