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:
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.
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 complete list of the supported line-editing commands.
C-ameans pressing the Ctrl key and the letter
M-fmeans pressing the Esc key and the letter
Endrepresent the keys with the same name on the keyboard.
Rightrepresent the corresponding arrow keys.
|Home||Beginning of line|
|C-a||Beginning of line|
|End||End of line|
|C-e||End of line|
|C-g||Enter shell break mode|
|C-u||Backward kill line|
|C-n||Fetch next line from the history buffer|
|C-p||Fetch previous line from the history buffer|
|C-w||Backward kill word|
|C-y||Insert previously killed text|
In this mode the following can be done:
© 2010–2017 Ericsson AB
Licensed under the Apache License, Version 2.0.