8. tty - A Command-Line Interface
8 tty - A Command-Line Interface
tty
is a simple command-line interface program where keystrokes are collected and interpreted. Completed lines are sent to the shell for interpretation. A simple history mechanism saves previous lines, which can be edited before sending them to the shell. tty
is started when Erlang is started with the following command:
erl
tty
operates in one of two modes:
-
Normal mode, in which text lines can be edited and sent to the shell.
-
Shell break mode, which allows the user to kill the current shell, start multiple shells, and so on.
8.1 Normal Mode
In normal mode keystrokes from the user are collected and interpreted by tty
. Most of the Emacs line-editing commands are supported. The following is a co