If your PC-scancode application crashes, your terminal might hang with the terminal and the line discipline in incompatible modes. To correct this incompatibility, log into another terminal and use either the scanon(M) or scanoff(M) command as described below.
If you want to restore both your terminal and line discipline to
PC-scancode mode, enter the following
scanon command, where ttyline is the
tty of the hung terminal:
If you want to restore both your terminal and line discipline
to character mode, use the scanoff command:
You do not need to be root to use scanon and scanoff to affect your own tty. For more information on scanon and scanoff, see the scanon(M) manual page.