TAILIEUCHUNG - Professional Information Technology-Programming Book part 127

Tham khảo tài liệu 'professional information technology-programming book part 127', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 1. export TERM pcvt25 2. For the root user erase or comment out by putting symbols before each line the three-line if statement at the bottom of the root .profile file. It should look like this 3. if -x usr bin tset then 4. eval usr bin tset -sQ TERM 5. fi Erasing or commenting this i f statement keeps OpenBSD from asking you what terminal type you want to use every time you log in. You will have to log out and log back in for these changes to take effect. From this point forward you should be able to see colors where appropriate for example in applications such as Vim Emacs Lynx Mutt etc. . . Setting the key repeat delay and rate Is the keyboard delay and repeat rate too slow for you If you re going to be primarily controlling this system through a serial terminal or over OpenSSH there isn t much sense in changing these settings. If you re going to be working from a keyboard connected directly to the machine however there are two settings you can edit to modify the key repeat rate and repeat delay. First let s play with them in real time to see which numbers you prefer starting with the repeat rate. Run this command wsconsctl 1 300 If that s too fast or too slow for you run the same command with a lower or higher number. When you find a rate that you prefer write it down for right now. We ll make this setting permanent in a moment. Next let s try changing the key repeat delay. Be warned that if you set this number too low it can be extremely difficult to type your way out of it wsconsctl 50 Again adjust the number to your preference but try not to go so low that you can t type normally. Once you ve got your preferred number write it down. Now let s make these settings permanent. Edit the etc file. You ll notice that the first two settings you find are are similar to the commands you ve just run. If the lines are commented out in other words if there s a before them uncomment them and set their numbers to