unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (OSF1-V5.1-alpha)
Page:
Section:
Apropos / Subsearch:
optional field



gettydefs(4)							 gettydefs(4)



NAME

  gettydefs - Terminal attributes

SYNOPSIS

  /etc/gettydefs

DESCRIPTION

  The gettydefs	file supplies the getty	command	with information about vari-
  ous 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 get-
  tydefs 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

  Identifier
	    Identifies an entry.  The getty command uses an identifier as an
	    argument and searches for the first	entry with a matching iden-
	    tifier field. The identifier must be unique.

  Iflag	    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 con-
	    trol flags describe	how the	hardware controls the terminal.	 The
	    local flags	control	various	terminal functions.  Refer to ter-
	    mios(4) for	the description	of the possible	settings on a termi-
	    nal	port.  You can specify the symbol SANE to select default set-
	    tings. 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.

  Fflag	    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	ini-
	    tial flags specified in the	Iflag field.

  Message   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.

  Next Identifier
	    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

  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

  /usr/include/sys/termios.h

  /usr/sbin/getty
	    Specifies the command that initializes and controls	terminal
	    lines.

RELATED	INFORMATION

  Commands: getty(8)

  Functions:  kill(2)