### set terms

Use the set terms command to

- Define terminal types and the escape sequence a terminal uses when initiating and maintaining multiple sessions

- Display entries in the term table

- Remove entries from the term table

Normal users can display entries in the term table. Administrator (root) privileges are required to configure terminals and remove entries from the term table.

Here is some information on the set terms command:

- The set terms command configures PortServer to handle terminals that are not

  - Connected to a device/terminal server over the Ethernet

  - Using PPP, SLIP, CSLIP, or frame relay connections
- If users are to use the CTRL key in a key sequence, use a carat character (^) in place of the CTRL key when you configure the sequence.

#### Command Syntax

##### Configuration Syntax

Enter the set terms command as shown below to configure terminals:

`set terms [clrseq=escape_seq] [npages=pages] [swtseq=SessNumSequence] termtype=type`

##### Display Syntax

Enter the set terms command with no options, or a range of ports, as shown below, to display basic information (just the termtype) for each terminal in the term table:

`set terms [range=range]`

Enter the set terms command with a range of one port, as shown below, to display all entries in the term table for the specified terminal:

`set terms [range=port#]`

##### Removal Syntax

Enter the set terms command as shown below to remove entries from the term table:

`set terms {rmterm=termtype} | {rmterm=on range=range}`

#### Command Fields

Command Field | Description
clrseq | Specifies the escape sequence that clears the current screen. This should be the sequence specified by the manufacturer of your terminal.
npages | Specifies the number of sessions available to this terminal type. This should be the same as the number of pages of screen memory available on the terminal. The range is 1-9.
swtseq=SessNumSequence | Specifies a number that identifies the session and the escape sequence used to access that session. This should be the sequence specified by the manufacturer of your terminal. Note: There are no spaces between the number identifying the session and the key sequence used to access that session.
range | Specifies the range of term table entries to display or remove.
rmterm | termtype - specifies the name of the terminal supplied on the termtype field. This terminal type will be removed from the term table when the command with this option is executed. on - means that the term table entries identified on the range field will be deleted when the command is executed.
termtype | Specifies a name for the terminal type. This name must match the name: Specified on the termtype field of the set ports command Used by hosts on your network for this type of terminal Digi device/terminal servers provide two default terminal types, wy60 and wy60-e. Use the set terms command to display parameters associated with these types of terminals.

#### Command Examples

##### Displaying the Entire Term Table

In this example, the set terms command displays the termtype value for every entry in the term table.

`set terms`

##### Displaying a Range of Entries in the Term Table

In this example, the set terms command displays detailed information for port #4:

`set terms range=4`

##### Removing an Entry from the Term Table

In this example, the set terms command removes an entry from the term table.

`set terms rmterm=on range=3`

##### Configuring a Terminal Type

In this example, the set terms command configures a terminal type.

`set terms termtype=VT100 npages=4 clrseq=^! swtseq=1^]` `swtseq=2^[ swtseq=3^} swtseq=4^{`