The special characters’ default values vary from system to system. They are set with the syntax ‘name value’, where the names are listed below and the value can be given either literally, in hat notation (‘^c’), or as an integer which may start with ‘0x’ to indicate hexadecimal, ‘0’ to indicate octal, or any other digit to indicate decimal.
For GNU stty, giving a value of ^-
or undef
disables that
special character. (This is incompatible with Ultrix stty
,
which uses a value of ‘u’ to disable a special character. GNU
stty
treats a value ‘u’ like any other, namely to set that
special character to U.)
Send an interrupt signal.
Send a quit signal.
Erase the last character typed.
Erase the current line.
Send an end of file (terminate the input).
End the line.
Alternate character to end the line. Non-POSIX.
Alternate character to toggle discarding of output. Non-POSIX.
Switch to a different shell layer. Non-POSIX.
Send an info signal. Not currently supported on GNU/Linux. Non-POSIX.
Restart the output after stopping it.
Stop the output.
Send a terminal stop signal.
Send a terminal stop signal after flushing the input. Non-POSIX.
Redraw the current line. Non-POSIX.
Erase the last word typed. Non-POSIX.
Enter the next character typed literally, even if it is a special character. Non-POSIX.