1 .\" $NetBSD: tip.1,v 1.30 2009/01/17 20:59:01 wiz Exp $
3 .\" Copyright (c) 1980, 1990, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)tip.1 8.4 (Berkeley) 4/18/94
38 .Nd serial terminal emulator
60 are used to connect to another system over a serial link.
61 In the era before modern networks, they were typically used to
62 connect to a modem in order to dial in to a remote host.
63 They are now frequently used for tasks such as attaching to the
64 serial console of another machine for administrative or
67 The following option is available for
74 The following options are available for
82 Use this escape character.
94 Echo characters locally (half-duplex mode).
96 Specify the line to use.
97 Either of the forms like
103 No escape (disable tilde).
114 Set the speed of the connection.
117 Connect via a hard-wired connection to a host on a dial-up line.
126 are given, then no parity is used.
127 This is the default behaviour.
131 is specified it will override any baudrate specified in the system
132 description being used.
140 will be set to the value of the
142 environment variable.
150 will be set to a value of
162 Typed characters are normally transmitted directly to the remote
163 machine (which does the echoing as well).
164 A tilde (`~') appearing
165 as the first character of a line is an escape signal; the following
168 .It Ic \&~^D No or Ic \&~ .
169 Drop the connection and exit
170 (you may still be logged in on the
172 .It Ic \&~c Op Ar name
176 implies change to your home directory).
178 Escape to a shell (exiting the shell will
181 Copy file from local to remote.
183 prompts for the name of a local file to transmit.
185 Copy file from remote to local.
187 prompts first for the name of the file to be sent, then for
188 a command to be executed on the remote machine.
189 .It Ic \&~p Ar from Op Ar to
190 Send a file to a remote
193 The put command causes the remote
195 system to run the command string ``cat \*[Gt] 'to''', while
197 sends it the ``from''
199 If the ``to'' file isn't specified the ``from'' file name is used.
200 This command is actually a
202 specific version of the ``~\*[Gt]'' command.
203 .It Ic \&~t Ar from Op Ar to
204 Take a file from a remote
207 As in the put command the ``to'' file
208 defaults to the ``from'' file name if it isn't specified.
210 executes the command string ``cat 'from';echo ^A'' to send the file to
213 Pipe the output from a remote command to a local
216 The command string sent to the local
218 system is processed by the shell.
220 Pipe the output from a local
222 process to the remote host.
223 The command string sent to the local
225 system is processed by the shell.
227 Fork a child process on the local system to perform special protocols
230 The child program will be run with the following
231 arrangement of file descriptors:
232 .Bl -column -offset indent 0 "\*[Lt]-\*[Gt]" "remote tty in"
233 .It 0 Ta \*[Lt]-\*[Gt] Ta remote tty in
234 .It 1 Ta \*[Lt]-\*[Gt] Ta remote tty out
235 .It 2 Ta \*[Lt]-\*[Gt] Ta local tty out
238 Synonym for \&~C, provided for compatibility with other versions of
243 to the remote system.
244 For systems which don't support the
247 call the break is simulated by a sequence of line speed changes
252 Set a variable (see the discussion below).
256 (only available with job control).
258 Stop only the ``local side'' of
260 (only available with job control);
261 the ``remote side'' of
263 the side that displays output from the remote host, is left running.
265 Get a summary of the tilde escapes
271 to find how to reach a particular
272 system and to find out how it should operate while talking
276 for a full description.
277 Each system has a default baud rate with which to
278 establish a connection.
279 If this value is not suitable, the baud rate
280 to be used may be specified on the command line, e.g.
285 establishes a connection it sends out a
286 connection message to the remote system; the default value, if any,
294 prompts for an argument (e.g. during setup of
295 a file transfer) the line typed may be edited with the standard
296 erase and kill characters.
297 A null line in response to a prompt,
298 or an interrupt, will abort the dialogue and return you to the
302 guards against multiple users connecting to a remote system
303 by opening modems and terminal lines with exclusive access,
304 and by honoring the locking protocol used by
307 During file transfers
309 provides a running count of the number of lines transferred.
310 When using the ~\*[Gt] and ~\*[Lt] commands, the ``eofread'' and ``eofwrite''
311 variables are used to recognize end-of-file when reading, and
312 specify end-of-file when writing (see below).
313 File transfers normally depend on tandem mode for flow control.
315 system does not support tandem mode, ``echocheck'' may be set
318 should synchronize with the remote system on the echo of each
319 transmitted character.
323 must dial a phone number to connect to a system it will print
324 various messages indicating its actions.
329 Racal-Vadic 831 auto-call-units;
334 Ventel 212+, Racal-Vadic 3451, and
335 Bizcomp 1031 and 1032 integral call unit/modems.
340 which control its operation.
341 Some of these variables are read-only to normal users (root is allowed
342 to change anything of interest).
343 Variables may be displayed
344 and set through the ``s'' escape.
345 The syntax for variables is patterned
351 as an argument to the set command displays all variables readable by
353 Alternatively, the user may request display of a particular
354 variable by attaching a `?' to the end.
355 For example ``escape?'' displays
356 the current escape character.
358 Variables are numeric, string, character, or boolean values.
360 variables are set merely by specifying their name; they may be reset
361 by prepending a `!' to the name.
362 Other variable types are set by
363 concatenating an `=' and the value.
364 The entire assignment must not
365 have any blanks in it.
366 A single set command may be used to interrogate
367 as well as set a number of variables.
368 Variables may be initialized at run time by placing set commands
369 (without the ``~s'' prefix in a file
371 in one's home directory).
376 to display the sets as they are made.
377 Certain common variables have abbreviations.
378 The following is a list of common variables,
379 their abbreviations, and their default values.
382 (bool) Discard unprintable characters when a session is being scripted;
386 (num) The baud rate at which the connection was established;
390 (num) When dialing a phone number, the time (in seconds)
391 to wait for a connection to be established; abbreviated
394 (bool) Synchronize with the remote host during file transfer by
395 waiting for the echo of the last character transmitted; default is
398 (str) The set of characters which signify an end-of-transmission
399 during a ~\*[Lt] file transfer command; abbreviated
402 (str) The string sent to indicate end-of-transmission during
403 a ~\*[Gt] file transfer command; abbreviated
406 (str) The set of characters which indicate an end-of-line.
408 will recognize escape characters only after an end-of-line.
410 (char) The command prefix (escape) character; abbreviated
412 default value is `~'.
414 (str) The set of characters which should not be discarded
415 due to the beautification switch; abbreviated
417 default value is ``\et\en\ef\eb''.
419 (char) The character used to force literal data transmission;
422 default value is `^P'.
424 (num) The amount of data (in bytes) to buffer between file system
425 writes when receiving files; abbreviated
428 (str) The name of the host to which you are connected; abbreviated
431 (char) The character which indicates an end-of-line on the remote
434 default value is `\en'.
435 This value is used to synchronize during
437 The count of lines transferred during a file transfer
438 command is based on receipt of this character.
440 (bool) Upper case mapping mode; abbreviated
444 When this mode is enabled, all lower case letters will be mapped to
447 for transmission to the remote machine.
449 (char) The input character used to toggle upper case mapping mode;
452 default value is `^A'.
454 (str) The name of the file in which a session script is recorded;
457 default value is ``tip.record''.
459 (bool) Session scripting mode; abbreviated
468 will record everything transmitted by the remote machine in
469 the script record file specified in
473 switch is on, only printable
475 characters will be included in
476 the script file (those characters between 040 and 0177).
480 is used to indicate characters which are an exception to the normal
481 beautification rules.
483 (bool) Expand tabs to spaces during file transfers; abbreviated
487 Each tab is expanded to 8 spaces.
489 (bool) Use XON/XOFF flow control to throttle data from the remote host;
496 capability has been specified in
498 in which case the default value is
501 (bool) Verbose mode; abbreviated
505 When verbose mode is enabled,
507 prints messages while dialing, shows the current number
508 of lines transferred during a file transfer operations,
513 uses the following environment variables:
516 (str) The name of the shell to use for the ~! command; default
517 value is ``/bin/sh'', or taken from the environment.
519 (str) The home directory to use for the ~c command; default
520 value is taken from the environment.
522 Check for a default host if none specified.
531 .Bl -tag -width /var/spool/lock/LCK..* -compact
533 Global system descriptions.
535 Global phone number data base.
537 Private system descriptions.
539 Private phone numbers.
546 Diagnostics are, hopefully, self explanatory.
556 The full set of variables is undocumented and should, probably, be