Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure keys in erlang shell on linux

Tags:

linux

erlang

All! Is it possible to configure Home,End, Del key in Erlang shell under Linux.

At the moment when I press Home, it generate 'H' and when End - 'F'...

like image 254
Anton Prokofiev Avatar asked Apr 13 '11 11:04

Anton Prokofiev


People also ask

How do I run Erlang in terminal?

On a Unix system you enter the command erl at the operating system prompt. This command starts the Erlang runtime system and the Erlang shell. On the Windows platform you normally start Erlang/OTP from the start menu. You can also enter the command erl or werl from a DOS box or Command box.

Which of the following is the correct syntax to define a function in the Erlang shell?

Syntax − f(). For example − Following is an example of how the function is used. First a variable called Str is defined which has the value abcd. The f() is then used to remove the Str variable binding.

What is Erlang shell?

The shell is a user interface program for entering expression sequences. The expressions are evaluated and a value is returned. A history mechanism saves previous commands and their values, which can then be incorporated in later commands.


1 Answers

One way to do it is to start the Erlang shell with rlwrap -a erl. rlwrap is a utility that puts the readline library between the user and the underlying program, giving features such as familiar key bindings, history search, etc.

like image 117
legoscia Avatar answered Oct 26 '22 07:10

legoscia