FacetTerm  
 
FacetCorp
 

Fixed Pty Lines on RS/6000 - AIX


Most application packages utilize the TERM environment variable to identify what kind of terminal you are using. Some packages utilize the /etc/ttytype, /etc/ttys or alternate file for the same purpose. In these cases, you may need to utilize fixed line assignments to allow your application to identify what kind of terminal you are using. By default, FacetTerm will get the next available pseudo-devices; thus, getting random terminal types. By assigning pseudo-devices to specific terminals, this "randomness" can be avoided.

The following pages are a copy of the .facetlines.df file found in the /usr/facet directory. All instructions pertinent to your particular platform are in the .facetlines.df file.

NOTE: fixed line assignments can be utilized only on a few pty versions of FacetTerm. These are SCO UNIX, AIX, DG/UX and Motorola V.4. Any driver version of FacetTerm supports fixed line assignments; the instructions for driver versions of FacetTerm are detailed in the manual. Below is a list of the earliest versions of FacetTerm that support the fixed line assignments on the pty versions. Any version later than this supports the fixed line assignments.

Platform  FacetTerm 
Version
FacetTerm
Partnumber
  SCO UNIX 3.0.4   scpty.324.304
  AIX 3.1 2.3.0   rs6k.31.230
  AIX 3.2 3.3.0   rs6k.323.300
  DG/UX 3.1.1   dg.54.311
  Motorola V.4 3.2.2   m88k54.41.322
#############################################
# /usr/facet/.facetlines.df
# For AIX (rs6k.310.230 and later)
#############################################
#
#    When FacetTerm starts, it looks for a file with the 
#    name ".facetlines" in :
#         1. The /etc directory.
#         2. The /usr/facet directory.
#
#    This file may be used to specify which ptys a particular
#    FacetTerm will use.
#
#    If you do not want users to be able to change the file, put 
#    ".facetlines" in the /etc directory and write protect it 
#    appropriately. Otherwise, put the file in /usr/facet.
#
#    Lines beginning with # are treated as comments.
#
#    This file consists of groups lines of the form:
#
#         1. An identifying tag line.
#
#            The "identifying tag line" must begin in column 1, 
#            if it matches the environment variable FACETDEVICE
#            which you set and export, specifies that this group
#            of "pty assignment lines" is to be used.
#
#         2. One or more pty-assignment-lines.
#
#            The "pty assignment lines" must begin with a tab or
#            space, and specify which pty should be used for
#            a particular window.  It has 2 fields, separated by
#            tabs and/or spaces:
#         A. The window number.
#
#            The decimal number "1" through "10" for window
#            1 through 10 respectively.
#            Window 10 may also be specified as 0.
#            The extra control pty may be specified as
#            "C" or "11".
#
#         B. The master pty pathname.
#
#    Any window or control pty that is not mentioned will be 
#    allocated with the normal method of finding an idle pty.
#
#    It is the users responsibility to ensure that the assigned ptys
#    are high enough on the list that they are not allocated by
#    other FacetTerm or other programs that use ptys.
#    On AIX 4.1 it is also the user responsibility to ensure that the
#    ptys specified have been created. (See "smit pty" - BSD TYPE)
#
############################################
#       For example on AIX 3.2.5 :
#
#               /dev/tty2
#                       1       /dev/ptc/301
#                       2       /dev/ptc/302
#                       3       /dev/ptc/303
#                       4       /dev/ptc/304
#                       5       /dev/ptc/305
#                       6       /dev/ptc/306
#                       7       /dev/ptc/307
#                       8       /dev/ptc/308
#                       9       /dev/ptc/309
#                       0       /dev/ptc/310
#                       C       /dev/ptc/311
#               sam
#                       1       /dev/ptc/316
#                       3       /dev/ptc/317
############################################
#       For example on AIX 4.1 :
#       ( Only BSD type ptys can be fixed  )
#       (     /dev/pty[p-zA-J][0-9a-f]     )
#
#               /dev/tty2
#                       1       /dev/ptyA0
#                       2       /dev/ptyA1
#                       3       /dev/ptyA2
#                       4       /dev/ptyA3
#                       5       /dev/ptyA4
#                       6       /dev/ptyA5
#                       7       /dev/ptyA6
#                       8       /dev/ptyA7
#                       9       /dev/ptyA8
#                       0       /dev/ptyA9
#                       C       /dev/ptyAa
#               sam
#                       1       /dev/ptyBb
#                       3       /dev/ptyBc
############################################
#
#    will assign ptys for all windows and control for the user
#    who sets:
#         FACETDEVICE=/dev/tty2; export FACETDEVICE
#    and will assign ptys for windows 1 and 3 for the user who sets:
#         FACETDEVICE=sam; export FACETDEVICE
#    The others will be selected by the normal method of finding an
#    idle pty.