7. tty - A command line interface
7 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. There is a simple history mechanism, which saves previous lines. These can be edited before sending them to the shell. tty
is started when Erlang is started with the command:
erl
tty
operates in one of two modes:
-
normal mode, in which lines of text can be edited and sent to the shell.
-
shell break mode, which allows the user to kill the current shell, start multiple shells etc. Shell break mode is started by typing Control G.
7.1 Normal Mode
In normal mode keystrokes from the user are collected and interpreted by tty登录查看完整内容