Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX System Administrator's Guide: Configuration Management: HP-UX 11i Version 3 > Chapter 9 Configuring Peripherals

Configuring Non-HP Terminals

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

To set up a user with a non-HP terminal, do the following:

  1. Make sure the file set NONHPTERM is on the system by using either of these methods:

    • # swlist -l fileset NonHP-Terminfo

      If the file set exists, the entry for NonHP-Terminfo.NONHPTERM will be displayed.

    • # ll /var/adm/sw/products/NonHP-Terminfo

      If the file set exists, the directory /var/adm/sw/products/NonHP-Terminfo/NONHPTERM will exist.

    If the fileset is not on the system, you will need to load it from your latest HP-UX media. For details, see the HP-UX System Administrator’s Guide: Routine Tasks or the Software Distributor Administration Guide.

  2. Look in the directory /usr/share/lib/terminfo for a file that corresponds to the terminal you want to set up. For example, suppose you want to set up a user with a Wyse 100 terminal. All supported terminals whose names begin with w are contained in the /usr/share/lib/terminfo/w directory. Because this directory contains an entry wy100, you have probably found the correct file. To be sure, examine the contents of the file with more. You will see a screen full of special characters, but near the beginning you will see wy100|100|wyse 100. This verifies the correct file and shows that you can refer to the Wyse 100 by any of the names wy100, 100, or wyse 100.

    If there is a terminfo file for the terminal you want to add, skip Step 3 and go to Step 4.

    If there is no terminfo file for the terminal you want to add, you will need to create one. See Step 3 for details.

  3. To create a terminfo file, follow the directions in terminfo(4).

    To adapt an existing file, follow these steps:

    1. Log in as superuser.

    2. Make an ASCII copy of an existing terminfo file. For example, make a copy of the file /usr/share/lib/terminfo/w/wy100 by entering:

      # untic /usr/share/lib/terminfo/w/wy100 > new_file
    3. Edit the new file to reflect the capabilities of the new terminal. Make sure you change the name(s) of the terminal in the first line.

    4. Compile the new terminfo file:

      # tic new_file

      For more further information, see tic(1M) and untic(1M)

  4. Set the user’s TERM variable in the appropriate login script (either .profile for Korn and POSIX shell users or .login for C shell users in their home directory) to any of the names you uncovered in Step 2. For example:

    # export TERM=wy100 (Korn or POSIX shell) # setenv TERM wy100 (C shell)

    The default versions of these scripts prompt the user for the terminal type upon log in, so rather than editing the script, you could simply tell the user to respond with the terminal name. For example:

    TERM = (hp) wy100

    You can also set the TERM variable with the /sbin/ttytype command.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.