Fixing Terminal Settings with stty

Another handy thing you can do with your shell is use it to fix those annoying problems that occur with terminal programs. Back in Chapter 1, we mentioned that you might encounter oddities such as your and keys not working properly. You can fix these problems using stty (see Code Listing 3.16).

Code Listing 3.16. You can often straighten out a confused telnet program or Unix system by using a stty command. This one fixes the errant key.
xmission>  ls ^?^?^?^?
   : No such file or directory
xmission>  stty erase '^?' ...

Get Unix Third Edition: Visual Quickstart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.