DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Adding serial terminals

Setting the terminal type automatically

If you want to have the terminal type set automatically at login time:

  1. Log in on the terminal in question and determine which ttyname you are using by entering the tty(C) command:

    tty

  2. Log in as root and edit the file /etc/ttytype with a text editor. Change the terminal type field for the line associated with the terminal in question to the terminal type you desire to use. Follow the model for the console. If you want your terminal type to be set to ``wy50'' for /dev/tty1a, edit /etc/ttytype as follows:
       wy50 tty1a
    

  3. Edit the user's startup file to modify the appropriate tset(C) command line to set the terminal type automatically. In each C-shell user's .login file, add the following line:
       tset -s -Q > /tmp/tset$$; source /tmp/tset$$; /bin/rm /tmp/tset$$
    
    Be sure to remove the default setenv command line involving TERM and TERMCAP from the .login file.

    In each Bourne shell or Korn shell user's .profile, add the following line:

       eval `tset -s`
    
    Be sure to remove the existing tset command line from the .profile file.

  4. Have all users log out, then log in again to test the new terminal type change. After they log in, have them verify the new term type by entering the env(C) command:

    env


Next topic: Removing terminals
Previous topic: Setting the terminal type at login

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 03 June 2005