Using HP-UX Internet Services (August 2003)
Logging into a Host Using telnet
Changing the Behavior of Carriage Returns
Chapter 1 19
Changing the Behavior of Carriage Returns
You may sometimes notice a change in the way your local host interprets
a carriage return received from a remote host. This indicates that the
telnet’s carriage return mode setting is wrong for the type of remote
host to which you are connected. In such cases, your local host must
change the carriage return setting appropriately.
The following lists the behavioral change in the carriage return, and the
corrective action:
• If pressing Return produces double-spaced lines (indicating an extra
line feed), you need to disable carriage return mode.
• If pressing Return moves the cursor to the beginning of thesame line
so that the same line keeps getting overwritten (indicating no line
feed), you need to enable carriage return mode.
Disabling or Enabling the Carriage Return
If you are not at the telnet> prompt, enter the telnet escape character
(usually CTRL-]) to display the prompt.
At the telnet> prompt, type the following command:
toggle crmod
If the carriage return mode was on, telnet turns it off and displays the
following:
Won't map carriage return on output.
If the carriage return mode was off, telnet turns it on and displays the
following:
Will map carriage return on output.
If you are connected to a remote host, telnet returns you to the remote
host. To redisplay the remote host’s prompt, press the Return key.