FacetTerm  
 
FacetCorp
 

Fixed Lines on Driver Platform


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 and DG/UX. Any driver version of FacetTerm supports fixed line assignments.

#############################################
# /usr/facet/.facetlines.df
# For all driver versions
#############################################
#
#    When FacetTerm or FacetPc starts, it looks for a file with the 
#    name ".facetlines" in :
#         1. The /etc directory.
#         2. The /usr/facet directory.
#
#    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.
#
#    This file consists of lines of the form:
#
#         1. The terminal device name
#         ( as reported by the command "tty" ).
#         2. One or more blanks or tabs.
#         3. The desired Facet line ( Starting with 0 ).
#
#         Lines beginning with # are treated as comments.
#
#    For example, the following file will assign tty04 to Facet 
#    line 4, tty06 to Facet line 8, and ttya to Facet line 3. 
#    When FacetTerm is run on any other terminal, it will not 
#    choose Facet lines 4, 8, and 3.

# this is a comment
/dev/tty04	4
/dev/tty06	8
/dev/ttya 	3

#    In addition to the capabilities described above, an optional 
#    third field in the ".facetlines" file will let you specify 
#    another name for the windows associated with a Facet line that 
#    you have assigned to a particular terminal.
#
#    The line in the ".facetlines" file for these terminals should 
#    be of the form:
#
#         1. The terminal device name
#         ( as reported by the command "tty" ).
#         2. One or more blanks or tabs.
#         3. The desired Facet line ( Starting with 0 ).
#         4. One or more blanks or tabs.
#         5. The desired first part of the window names
#         ( which must start with "/dev/" and end with "w" ).
#
#    For example, the file will not only assign tty04 to Facet 
#    line 4, but indicates that the window names for line 4 
#    should be changed from:
#    
#         /dev/t4w1	through    /dev/t4w10
#    to
#         /dev/tty04w1	through    /dev/tty04w10
#

# this is a comment
/dev/tty04	4     /dev/tty04w
/dev/tty06	8
/dev/ttya 	3

#
#    Once the ".facetlines" file has been changed for this type 
#    of assignment, you must run the script:
#
#         /usr/facet/facet.makenode
#
#    to get the windows properly renamed.  You must be "root" to 
#    run this script.
#
#    You should not be running FacetTerm on the affected terminal
#    nor on the affected Facet line from the time that you change
#    the ".facetlines" file until the "facet.makenode" script has 
#    been successfully completed.
#
#    Note that "facet.makenode" must also be run if you remove such
#    an assignment from the ".facetlines" file.
#