HPlogo Using Internet Services: HP 9000 Networking > Chapter 1 Logging into a Host with telnet

Changing the Behavior of Carriage Returns

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

When some remote hosts send a carriage return to your local host, your local host may need to change the carriage return into a carriage return-line feed combination.

  1. Watch for the following behaviors, which indicate that telnet's carriage return mode setting is wrong for the type of remote host to which you are connected:

    • 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 the same line so that the same line keeps getting overwritten (indicating no line feed), you need to enable carriage return mode.

  2. If you are not at the telnet> prompt, enter the telnet escape character (usually CTRL-]) to display the prompt.

  3. At the telnet> prompt, type the following:

    toggle crmod

    If carriage return mode was on, telnet turns it off and displays the following:

    Won't map carriage return on output.

    If 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 Return.

© 1997 Hewlett-Packard Development Company, L.P.