Search code examples
erlangerlang-shell

How to clear the screen in erlang with Ctrl+L or similar?


Is there any why to clear the erlang screen with Ctrl+L like shortcut?


Solution

  • Use rlwrap -a erl command.

    rlwrap is completely transparent to Erlang shell in case of user character input and it wraps them with readline that provides line-editing and history capabilities for interactive programs with a command-line interface like erl.

    Note that in a case of using commands like Ctrl+g or Tab for name completion, rlwrap doesn't pass it to Erlang shell.