*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> gettydefs (4)              
Title
Content
Arch
Section
 

gettydefs(4)

Contents


NAME    [Toc]    [Back]

       gettydefs - Terminal attributes

SYNOPSIS    [Toc]    [Back]

       /etc/gettydefs

DESCRIPTION    [Toc]    [Back]

       The  gettydefs file supplies the getty command with information
 about various  terminal  attributes,  such  as  the
       default  initialization  and the login message. The gettydefs
 file contains single line entries that are  separated
       by  blank  lines.    Each entry contains five fields; each
       field is separated by a number sign (#). You can  indicate
       comments  in  the file by putting a number sign (#) at the
       beginning of a line.

       When the getty command is invoked, it scans the  gettydefs
       file  for the first entry with a matching identifier field
       (see below). If  the  gettydefs  file  cannot  be  opened,
       internal default settings are used.   If a match is found,
       then the  matching  entry  is  parsed,  and  the  terminal
       attributes  are  set  based on the fields specified in the
       entry.  If a match is not found, the first gettydefs  file
       entry is used; therefore the first entry in gettydefs must
       be the default entry.  The maximum length of each entry is
       255 characters.

       The format of each entry is as follows:

       Identifier#Iflag#Fflag#Message#Next Identifier

       Identifies an entry.  The getty command uses an identifier
       as an argument and searches for the  first  entry  with  a
       matching  identifier field. The identifier must be unique.
       Specifies the initial terminal flags that the  getty  command
  uses to set the terminal attributes after a line has
       been successfully opened.  There are four  categories  for
       the  terminal  attributes.   The  input  flags control the
       basic input attributes.  The output flags control how  the
       terminal  system  processes  output.   The  control  flags
       describe how the  hardware  controls  the  terminal.   The
       local  flags control various terminal functions.  Refer to
       termios(4) for the description of the possible settings on
       a  terminal  port.   You  can  specify  the symbol SANE to
       select default settings.  The  default  settings  set  the
       input  flags to BRKINT, IGNPAR, ICRNL and IXON; the output
       flags to OPOST and ONLCR; the control flags  to  CS8,  and
       CREAD;  and the local flags to ISIG, ICANON, IEXTEN, ECHO,
       ECHOK.  Specifies the final terminal  flags  used  by  the
       getty command. These flags are set after the getty command
       receives a valid login name from the standard  input.  The
       output flags and the control flags are set to the terminal
       attributes specified in Fflag. The input flags  and  local
       flags  are  appended to the initial flags specified in the
       Iflag field.  Specifies the login message.  The login message
  can  include the character sequence %h to obtain the
       host name and %t to obtain the terminal name.  This  field
       is  limited to 79 characters.  Specifies that if the speed
       specified in the current entry was  incorrect,  the  entry
       corresponding to this field should be used. The getty command
 obtains the new entry from this field, and  the  scan
       process is repeated.

EXAMPLES    [Toc]    [Back]

       The  following  is an example of an entry in the gettydefs
       file containing settings for an 8  bit,  no  parity,  9600
       baud, locally connected terminal line:

       9600#  B9600 HUPCL CS8 CLOCAL # B9600 SANE IXANY TAB3 CLOCAL
 #login: #9600

       The following is an example of an entry in  the  gettydefs
       file  containing  settings  for  a  8 bit, no parity, 2400
       baud, dial in modem line:

       M2400# B2400 HUPCL CS8  #  B2400  SANE  IXANY  TAB3  HUPCL
       #login: #M1200

FILES    [Toc]    [Back]

       Specifies the command that initializes and controls terminal
 lines.

SEE ALSO    [Toc]    [Back]

      
      
       Commands: getty(8)

       Functions: kill(2)



                                                     gettydefs(4)
[ Back ]
 Similar pages
Name OS Title
termios Linux get and set terminal attributes, line control, get and set baud rate, get and set terminal foregroun...
setterm Linux set terminal attributes
ct HP-UX spawn getty to a remote terminal (call terminal)
tty IRIX get the name of the terminal
ttyname Tru64 Get the name of a terminal
ttyname_r Tru64 Get the name of a terminal
tty HP-UX get the name of the terminal
pty HP-UX get the name of the terminal
isatty Tru64 Get the name of a terminal
tcgetattr Tru64 Get the parameters associated with the terminal
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service