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.
Code Listing 3.17. The stty command here fixes the key to work like .
To fix and key oddities with stty:
To fix general terminal weirdness with stty: