mode

Use the mode command to change or display the operating parameters for a current telnet session. Anyone can issue the mode command.

Command Syntax

Change Syntax

Enter the mode command as shown below to change telnet operating parameters:

mode [bin={on|off}] [crmod={on|off}] [crlf={on|off}]

Display Syntax

Enter the mode command as shown below to display the operating parameters of the current telnet session.

mode

Command Fields

Command Field

Description

bin

on - means that binary mode is on, that is, all transmitted and received characters are converted to binary during this telnet session.

off - means that binary mode is off for this telnet session.

The default is off.

crmod

on - means that line feed characters are added to received carriage return characters.

off - means that line feed characters are not added to received carriage return characters.

The default is off.

crlf

on - means that line feed characters are added to transmitted carriage return characters.

off - means that line feed characters are not added to transmitted carriage return characters.

The default is off.

Command Examples

Turning Binary Mode On

In this example, the mode command turns binary mode on.

mode binary=on

Adding Line Feed Characters

In this example, the mode command adds line feed characters to both transmitted and received carriage returns.

mode crmod=on crlf=on

Displaying Operating Parameters

In this example, the mode command displays information on each telnet session. This information includes

mode