xref: /freebsd/usr.bin/tip/tip/cu.1 (revision 4d12c7b9df660b15580ff3b07ef5570d1cab958a)
1*4d12c7b9SAlexander Ziaee.\"-
2*4d12c7b9SAlexander Ziaee.\" SPDX-License-Identifier: BSD-3-Clause
3*4d12c7b9SAlexander Ziaee.\"
4d391708cSRuslan Ermilov.\"	$OpenBSD: cu.1,v 1.3 2006/06/07 06:35:59 mbalmer Exp $
5d391708cSRuslan Ermilov.\"
6d391708cSRuslan Ermilov.\" Copyright (c) 1980, 1990, 1993
7d391708cSRuslan Ermilov.\"	The Regents of the University of California.  All rights reserved.
8d391708cSRuslan Ermilov.\"
9d391708cSRuslan Ermilov.\" Redistribution and use in source and binary forms, with or without
10d391708cSRuslan Ermilov.\" modification, are permitted provided that the following conditions
11d391708cSRuslan Ermilov.\" are met:
12d391708cSRuslan Ermilov.\" 1. Redistributions of source code must retain the above copyright
13d391708cSRuslan Ermilov.\"    notice, this list of conditions and the following disclaimer.
14d391708cSRuslan Ermilov.\" 2. Redistributions in binary form must reproduce the above copyright
15d391708cSRuslan Ermilov.\"    notice, this list of conditions and the following disclaimer in the
16d391708cSRuslan Ermilov.\"    documentation and/or other materials provided with the distribution.
17d391708cSRuslan Ermilov.\" 3. Neither the name of the University nor the names of its contributors
18d391708cSRuslan Ermilov.\"    may be used to endorse or promote products derived from this software
19d391708cSRuslan Ermilov.\"    without specific prior written permission.
20d391708cSRuslan Ermilov.\"
21d391708cSRuslan Ermilov.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22d391708cSRuslan Ermilov.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23d391708cSRuslan Ermilov.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24d391708cSRuslan Ermilov.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25d391708cSRuslan Ermilov.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26d391708cSRuslan Ermilov.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27d391708cSRuslan Ermilov.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28d391708cSRuslan Ermilov.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29d391708cSRuslan Ermilov.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30d391708cSRuslan Ermilov.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31d391708cSRuslan Ermilov.\" SUCH DAMAGE.
32d391708cSRuslan Ermilov.\"
33c71c6c73SEdward Tomasz Napierala.Dd April 22, 2017
34d391708cSRuslan Ermilov.Dt CU 1
35d391708cSRuslan Ermilov.Os
36d391708cSRuslan Ermilov.Sh NAME
37d391708cSRuslan Ermilov.Nm cu
38*4d12c7b9SAlexander Ziaee.Nd call UNIX over a serial line
39d391708cSRuslan Ermilov.Sh SYNOPSIS
40d391708cSRuslan Ermilov.Nm
41d391708cSRuslan Ermilov.Op Fl ehot
42d391708cSRuslan Ermilov.Op Fl a Ar acu
43d391708cSRuslan Ermilov.Op Fl l Ar line
44763e2b05SRuslan Ermilov.Op Fl s Ar speed | Fl Ar speed
45d391708cSRuslan Ermilov.Op Ar phone-number
46d391708cSRuslan Ermilov.Sh DESCRIPTION
47763e2b05SRuslan ErmilovThe
48d391708cSRuslan Ermilov.Nm
49763e2b05SRuslan Ermilovutility
50d391708cSRuslan Ermilovestablishes a full-duplex connection to another machine, giving the
51d391708cSRuslan Ermilovappearance of being logged in directly on the remote CPU.
52d391708cSRuslan ErmilovIt goes without saying that you must have a login on the machine (or
53d391708cSRuslan Ermilovequivalent) to which you wish to connect.
54d391708cSRuslan Ermilov.Pp
55d391708cSRuslan ErmilovThe options are as follows:
56763e2b05SRuslan Ermilov.Bl -tag -width indent
57d391708cSRuslan Ermilov.It Fl a Ar acu
58d391708cSRuslan ErmilovSet the acu.
59d391708cSRuslan Ermilov.It Fl e
60d391708cSRuslan ErmilovUse even parity.
61d391708cSRuslan ErmilovIf both
62d391708cSRuslan Ermilov.Fl e
63d391708cSRuslan Ermilovand
64d391708cSRuslan Ermilov.Fl o
65d391708cSRuslan Ermilovare given, then no parity is used
66d391708cSRuslan Ermilov(the default).
67d391708cSRuslan Ermilov.It Fl h
68d391708cSRuslan ErmilovEcho characters locally (half-duplex mode).
69d391708cSRuslan Ermilov.It Fl l Ar line
70d391708cSRuslan ErmilovSpecify the line to use.
71d391708cSRuslan ErmilovEither of the forms like
72839f11a4SEitan Adler.Pa cuau0
73d391708cSRuslan Ermilovor
74839f11a4SEitan Adler.Pa /dev/cuau0
75d391708cSRuslan Ermilovare permitted.
76d391708cSRuslan Ermilov.It Fl o
77d391708cSRuslan ErmilovUse odd parity.
78d391708cSRuslan ErmilovIf both
79d391708cSRuslan Ermilov.Fl e
80d391708cSRuslan Ermilovand
81d391708cSRuslan Ermilov.Fl o
82d391708cSRuslan Ermilovare given, then no parity is used
83d391708cSRuslan Ermilov(the default).
84763e2b05SRuslan Ermilov.It Fl s Ar speed | Fl Ar speed
85d391708cSRuslan ErmilovSet the speed of the connection.
86d391708cSRuslan ErmilovThe default is 9600.
87d391708cSRuslan Ermilov.It Fl t
88d391708cSRuslan ErmilovConnect via a hard-wired connection to a host on a dial-up line.
89d391708cSRuslan Ermilov.El
90d391708cSRuslan Ermilov.Pp
91d391708cSRuslan ErmilovTyped characters are normally transmitted directly to the remote
92d391708cSRuslan Ermilovmachine (which does the echoing as well).
93d391708cSRuslan ErmilovA tilde
94d391708cSRuslan Ermilov.Pq Ql ~
95d391708cSRuslan Ermilovappearing as the first character of a line is an escape signal; the
96d391708cSRuslan Ermilovfollowing are recognized:
97763e2b05SRuslan Ermilov.Bl -tag -width indent
98d391708cSRuslan Ermilov.It Ic ~^D No or Ic ~.
99d391708cSRuslan ErmilovDrop the connection and exit.
100d391708cSRuslan ErmilovOnly the connection is dropped \(en the login session is not terminated.
101d391708cSRuslan Ermilov.It Ic ~c Op Ar name
102d391708cSRuslan ErmilovChange directory to
103d391708cSRuslan Ermilov.Ar name
104d391708cSRuslan Ermilov(no argument implies change to home directory).
105d391708cSRuslan Ermilov.It Ic ~!
106d391708cSRuslan ErmilovEscape to a shell (exiting the shell will return to
107d391708cSRuslan Ermilov.Nm ) .
108763e2b05SRuslan Ermilov.It Ic ~>
109d391708cSRuslan ErmilovCopy file from local to remote.
110763e2b05SRuslan ErmilovThe
111d391708cSRuslan Ermilov.Nm
112763e2b05SRuslan Ermilovutility
113d391708cSRuslan Ermilovprompts for the name of a local file to transmit.
114763e2b05SRuslan Ermilov.It Ic ~<
115d391708cSRuslan ErmilovCopy file from remote to local.
116763e2b05SRuslan ErmilovThe
117d391708cSRuslan Ermilov.Nm
118763e2b05SRuslan Ermilovutility
119d391708cSRuslan Ermilovprompts first for the name of the file to be sent, then for a command
120d391708cSRuslan Ermilovto be executed on the remote machine.
121d391708cSRuslan Ermilov.It Ic ~p Ar from Op Ar to
122d391708cSRuslan ErmilovSend a file to a remote
123d391708cSRuslan Ermilov.Ux
124d391708cSRuslan Ermilovhost.
125d391708cSRuslan ErmilovThis command causes the remote
126d391708cSRuslan Ermilov.Ux
127d391708cSRuslan Ermilovsystem to run the following command string,
128d391708cSRuslan Ermilovsending it the
129763e2b05SRuslan Ermilov.Ar from
130d391708cSRuslan Ermilovfile:
131763e2b05SRuslan Ermilov.Pp
132763e2b05SRuslan Ermilov.Dl "stty -echo; cat > 'to'; stty echo"
133d391708cSRuslan Ermilov.Pp
134d391708cSRuslan ErmilovIf the
135763e2b05SRuslan Ermilov.Ar to
136763e2b05SRuslan Ermilovfile is not specified, the
137763e2b05SRuslan Ermilov.Ar from
138d391708cSRuslan Ermilovfile name is used.
139d391708cSRuslan ErmilovThis command is actually a
140d391708cSRuslan Ermilov.Ux
141d391708cSRuslan Ermilovspecific version of the
142763e2b05SRuslan Ermilov.Ic ~>
143d391708cSRuslan Ermilovcommand.
144d391708cSRuslan Ermilov.It Ic ~t Ar from Op Ar to
145d391708cSRuslan ErmilovTake a file from a remote
146d391708cSRuslan Ermilov.Ux
147d391708cSRuslan Ermilovhost.
148d391708cSRuslan ErmilovAs in the
149d391708cSRuslan Ermilov.Ic ~p
150d391708cSRuslan Ermilovcommand, the
151763e2b05SRuslan Ermilov.Ar to
152d391708cSRuslan Ermilovfile defaults to the
153763e2b05SRuslan Ermilov.Ar from
154763e2b05SRuslan Ermilovfile name if it is not specified.
155d391708cSRuslan ErmilovThe remote host executes the following command string
156d391708cSRuslan Ermilovto send the file to
157d391708cSRuslan Ermilov.Nm :
158763e2b05SRuslan Ermilov.Pp
159763e2b05SRuslan Ermilov.Dl "cat 'from'; echo '' | tr '\e012' '\e01'"
160d391708cSRuslan Ermilov.It Ic ~|
161d391708cSRuslan ErmilovPipe the output from a remote command to a local
162d391708cSRuslan Ermilov.Ux
163d391708cSRuslan Ermilovprocess.
164d391708cSRuslan ErmilovThe command string sent to the local
165d391708cSRuslan Ermilov.Ux
166d391708cSRuslan Ermilovsystem is processed by the shell.
167d391708cSRuslan Ermilov.It Ic ~$
168d391708cSRuslan ErmilovPipe the output from a local
169d391708cSRuslan Ermilov.Ux
170d391708cSRuslan Ermilovprocess to the remote host.
171d391708cSRuslan ErmilovThe command string sent to the local
172d391708cSRuslan Ermilov.Ux
173d391708cSRuslan Ermilovsystem is processed by the shell.
174d391708cSRuslan Ermilov.It Ic ~C
175d391708cSRuslan ErmilovFork a child process on the local system to perform special protocols
176763e2b05SRuslan Ermilovsuch as
177763e2b05SRuslan Ermilov.Tn XMODEM .
178d391708cSRuslan ErmilovThe child program will be run with the following arrangement of
179d391708cSRuslan Ermilovfile descriptors:
180d391708cSRuslan Ermilov.Bd -literal -offset indent
181763e2b05SRuslan Ermilov0 <-> remote tty in
182763e2b05SRuslan Ermilov1 <-> remote tty out
183763e2b05SRuslan Ermilov2 <-> local tty stderr
184d391708cSRuslan Ermilov.Ed
185d391708cSRuslan Ermilov.It Ic ~#
186d391708cSRuslan ErmilovSend a
187d391708cSRuslan Ermilov.Dv BREAK
188d391708cSRuslan Ermilovto the remote system.
189763e2b05SRuslan ErmilovFor systems which do not support the necessary
190d391708cSRuslan Ermilov.Fn ioctl
191d391708cSRuslan Ermilovcall, the break is simulated by a sequence of line speed changes and
192763e2b05SRuslan Ermilov.Dv DEL
193763e2b05SRuslan Ermilovcharacters.
194d391708cSRuslan Ermilov.It Ic ~s
195d391708cSRuslan ErmilovSet a variable (see the discussion below).
196d391708cSRuslan Ermilov.It Ic ~v
197d391708cSRuslan ErmilovList all variables and their values (if set).
198d391708cSRuslan Ermilov.It Ic ~^Z
199d391708cSRuslan ErmilovStop
200d391708cSRuslan Ermilov.Nm
201d391708cSRuslan Ermilov(only available with job control).
202d391708cSRuslan Ermilov.It Ic ~^Y
203d391708cSRuslan ErmilovStop only the
204763e2b05SRuslan Ermilov.Dq "local side"
205d391708cSRuslan Ermilovof
206d391708cSRuslan Ermilov.Nm
207d391708cSRuslan Ermilov(only available with job control); the
208763e2b05SRuslan Ermilov.Dq "remote side"
209d391708cSRuslan Ermilovof
210d391708cSRuslan Ermilov.Nm ,
211d391708cSRuslan Ermilovthe side that displays output from the remote host, is left running.
212d391708cSRuslan Ermilov.It Ic ~?
213d391708cSRuslan ErmilovGet a summary of the tilde escapes.
214d391708cSRuslan Ermilov.El
215d391708cSRuslan Ermilov.Pp
216d391708cSRuslan ErmilovWhen
217d391708cSRuslan Ermilov.Nm
218763e2b05SRuslan Ermilovprompts for an argument, for example during setup of a file transfer, the
219763e2b05SRuslan Ermilovline typed may be edited with the standard erase and kill characters.
220d391708cSRuslan ErmilovA null line in response to a prompt, or an interrupt, will abort the
221d391708cSRuslan Ermilovdialogue and return the user to the remote machine.
222d391708cSRuslan Ermilov.Pp
223763e2b05SRuslan ErmilovThe
224d391708cSRuslan Ermilov.Nm
225763e2b05SRuslan Ermilovutility
226d391708cSRuslan Ermilovguards against multiple users connecting to a remote system by opening
227d391708cSRuslan Ermilovmodems and terminal lines with exclusive access, and by honoring the
228d391708cSRuslan Ermilovlocking protocol used by
229763e2b05SRuslan Ermilov.Xr uucico 8 Pq Pa ports/net/freebsd-uucp .
230d391708cSRuslan Ermilov.Pp
231d391708cSRuslan ErmilovDuring file transfers
232d391708cSRuslan Ermilov.Nm
233d391708cSRuslan Ermilovprovides a running count of the number of lines transferred.
234d391708cSRuslan ErmilovWhen using the
235763e2b05SRuslan Ermilov.Ic ~>
236d391708cSRuslan Ermilovand
237763e2b05SRuslan Ermilov.Ic ~<
238d391708cSRuslan Ermilovcommands, the
239763e2b05SRuslan Ermilov.Va eofread
240d391708cSRuslan Ermilovand
241763e2b05SRuslan Ermilov.Va eofwrite
242d391708cSRuslan Ermilovvariables are used to recognize end-of-file when reading, and specify
243d391708cSRuslan Ermilovend-of-file when writing (see below).
244d391708cSRuslan ErmilovFile transfers normally depend on hardwareflow or tandem mode for flow control.
245d391708cSRuslan ErmilovIf the remote system does not support hardwareflow or tandem mode,
246763e2b05SRuslan Ermilov.Va echocheck
247763e2b05SRuslan Ermilovmay be set to indicate that
248d391708cSRuslan Ermilov.Nm
249d391708cSRuslan Ermilovshould synchronize with the remote system on the echo of each
250d391708cSRuslan Ermilovtransmitted character.
251d391708cSRuslan Ermilov.Pp
252d391708cSRuslan ErmilovWhen
253d391708cSRuslan Ermilov.Nm
254d391708cSRuslan Ermilovmust dial a phone number to connect to a system, it will print various
255d391708cSRuslan Ermilovmessages indicating its actions.
256763e2b05SRuslan ErmilovThe
257d391708cSRuslan Ermilov.Nm
258763e2b05SRuslan Ermilovutility
259d391708cSRuslan Ermilovsupports a variety of auto-call units and modems with the
260763e2b05SRuslan Ermilov.Va at
261d391708cSRuslan Ermilovcapability in system descriptions.
262d391708cSRuslan Ermilov.Pp
263d391708cSRuslan ErmilovSupport for Ventel 212+ (ventel), Hayes AT-style (hayes),
264d391708cSRuslan ErmilovUSRobotics Courier (courier), Telebit T3000 (t3000) and
265d391708cSRuslan ErmilovRacal-Vadic 831 (vadic) units is enabled by default.
266d391708cSRuslan Ermilov.Pp
267d391708cSRuslan ErmilovSupport for Bizcomp 1031[fw] (biz31[fw]), Bizcomp 1022[fw]
268d391708cSRuslan Ermilov(biz22[fw]), DEC DF0[23]-AC (df0[23]), DEC DN-11 (dn11) and
269d391708cSRuslan ErmilovRacal-Vadic 3451 (v3451) units can be added by recompiling
270d391708cSRuslan Ermilov.Nm
271d391708cSRuslan Ermilovwith the appropriate defines.
272d391708cSRuslan Ermilov.Pp
273d391708cSRuslan ErmilovNote that if support for both the Racal-Vadic 831 and 3451 is enabled,
274763e2b05SRuslan Ermilovthey are referred to as the v831 and v3451, respectively.
275d391708cSRuslan ErmilovIf only one of the two is supported, it is referred to as vadic.
276763e2b05SRuslan Ermilov.Ss Variables
277763e2b05SRuslan ErmilovThe
278d391708cSRuslan Ermilov.Nm
279763e2b05SRuslan Ermilovutility
280d391708cSRuslan Ermilovmaintains a set of variables which control its operation.
281d391708cSRuslan ErmilovSome of these variables are read-only to normal users (root is allowed
282d391708cSRuslan Ermilovto change anything of interest).
283d391708cSRuslan ErmilovVariables may be displayed and set through the
284763e2b05SRuslan Ermilov.Ic ~s
285d391708cSRuslan Ermilovescape.
286d391708cSRuslan ErmilovThe syntax for variables is patterned after
287d391708cSRuslan Ermilov.Xr vi 1
288d391708cSRuslan Ermilovand
289d391708cSRuslan Ermilov.Xr Mail 1 .
290d391708cSRuslan ErmilovSupplying
291763e2b05SRuslan Ermilov.Dq Li all
292d391708cSRuslan Ermilovas an argument to the set command displays all variables readable by
293d391708cSRuslan Ermilovthe user.
294d391708cSRuslan ErmilovAlternatively, the user may request display of a particular variable
295d391708cSRuslan Ermilovby attaching a
296d391708cSRuslan Ermilov.Ql \&?
297d391708cSRuslan Ermilovto the end.
298d391708cSRuslan ErmilovFor example,
299763e2b05SRuslan Ermilov.Dq Li escape?
300d391708cSRuslan Ermilovdisplays the current escape character.
301d391708cSRuslan Ermilov.Pp
302d391708cSRuslan ErmilovVariables are numeric, string, character, or boolean values.
303d391708cSRuslan ErmilovBoolean variables are set merely by specifying their name; they may be
304d391708cSRuslan Ermilovreset by prepending a
305763e2b05SRuslan Ermilov.Ql \&!
306d391708cSRuslan Ermilovto the name.
307d391708cSRuslan ErmilovOther variable types are set by concatenating an
308d391708cSRuslan Ermilov.Ql =
309d391708cSRuslan Ermilovand the value.
310d391708cSRuslan ErmilovThe entire assignment must not have any blanks in it.
311d391708cSRuslan ErmilovA single set command may be used to interrogate as well as set a
312d391708cSRuslan Ermilovnumber of variables.
313d391708cSRuslan ErmilovCertain common variables have abbreviations.
314d391708cSRuslan ErmilovThe following is a list of common variables, their abbreviations, and
315d391708cSRuslan Ermilovtheir default values:
316763e2b05SRuslan Ermilov.Bl -tag -width indent
317763e2b05SRuslan Ermilov.It Va baudrate
318763e2b05SRuslan Ermilov.Pq Vt num
319763e2b05SRuslan ErmilovThe baud rate at which the connection was established;
320d391708cSRuslan Ermilovabbreviated
321763e2b05SRuslan Ermilov.Va ba .
322763e2b05SRuslan Ermilov.It Va beautify
323763e2b05SRuslan Ermilov.Pq Vt bool
324763e2b05SRuslan ErmilovDiscard unprintable characters when a session is being
325d391708cSRuslan Ermilovscripted; abbreviated
326763e2b05SRuslan Ermilov.Va be .
327763e2b05SRuslan Ermilov.It Va dialtimeout
328763e2b05SRuslan Ermilov.Pq Vt num
329763e2b05SRuslan ErmilovWhen dialing a phone number, the time (in seconds) to wait for a
330d391708cSRuslan Ermilovconnection to be established; abbreviated
331763e2b05SRuslan Ermilov.Va dial .
332763e2b05SRuslan Ermilov.It Va echocheck
333763e2b05SRuslan Ermilov.Pq Vt bool
334763e2b05SRuslan ErmilovSynchronize with the remote host during file transfer by
335d391708cSRuslan Ermilovwaiting for the echo of the last character transmitted; default is
336763e2b05SRuslan Ermilov.Cm off .
337763e2b05SRuslan Ermilov.It Va eofread
338763e2b05SRuslan Ermilov.Pq Vt str
339763e2b05SRuslan ErmilovThe set of characters which signify an end-of-transmission
340d391708cSRuslan Ermilovduring a
341763e2b05SRuslan Ermilov.Ic ~<
342d391708cSRuslan Ermilovfile transfer command; abbreviated
343763e2b05SRuslan Ermilov.Va eofr .
344763e2b05SRuslan Ermilov.It Va eofwrite
345763e2b05SRuslan Ermilov.Pq Vt str
346763e2b05SRuslan ErmilovThe string sent to indicate end-of-transmission during a
347763e2b05SRuslan Ermilov.Ic ~>
348d391708cSRuslan Ermilovfile transfer command; abbreviated
349763e2b05SRuslan Ermilov.Va eofw .
350763e2b05SRuslan Ermilov.It Va eol
351763e2b05SRuslan Ermilov.Pq Vt str
352763e2b05SRuslan ErmilovThe set of characters which indicate an end-of-line.
353763e2b05SRuslan ErmilovThe
354d391708cSRuslan Ermilov.Nm
355763e2b05SRuslan Ermilovutility
356d391708cSRuslan Ermilovwill recognize escape characters only after an end-of-line.
357763e2b05SRuslan Ermilov.It Va escape
358763e2b05SRuslan Ermilov.Pq Vt char
359763e2b05SRuslan ErmilovThe command prefix (escape) character; abbreviated
360763e2b05SRuslan Ermilov.Va es ;
361d391708cSRuslan Ermilovdefault value is
362d391708cSRuslan Ermilov.Ql ~ .
363763e2b05SRuslan Ermilov.It Va exceptions
364763e2b05SRuslan Ermilov.Pq Vt str
365763e2b05SRuslan ErmilovThe set of characters which should not be discarded due to the
366d391708cSRuslan Ermilovbeautification switch; abbreviated
367763e2b05SRuslan Ermilov.Va ex ;
368d391708cSRuslan Ermilovdefault value is
369763e2b05SRuslan Ermilov.Dq Li \et\en\ef\eb .
370763e2b05SRuslan Ermilov.It Va force
371763e2b05SRuslan Ermilov.Pq Vt char
372763e2b05SRuslan ErmilovThe character used to force literal data transmission;
373d391708cSRuslan Ermilovabbreviated
374763e2b05SRuslan Ermilov.Va fo ;
375d391708cSRuslan Ermilovdefault value is
376d391708cSRuslan Ermilov.Ql ^P .
377763e2b05SRuslan Ermilov.It Va framesize
378763e2b05SRuslan Ermilov.Pq Vt num
379763e2b05SRuslan ErmilovThe amount of data (in bytes) to buffer between file system
380d391708cSRuslan Ermilovwrites when receiving files; abbreviated
381763e2b05SRuslan Ermilov.Va fr .
382763e2b05SRuslan Ermilov.It Va hardwareflow
383763e2b05SRuslan Ermilov.Pq Vt bool
384763e2b05SRuslan ErmilovWhether hardware flow control (CRTSCTS) is enabled for the
385d391708cSRuslan Ermilovconnection; abbreviated
386763e2b05SRuslan Ermilov.Va hf ;
387d391708cSRuslan Ermilovdefault value is
388763e2b05SRuslan Ermilov.Cm off .
389763e2b05SRuslan Ermilov.It Va host
390763e2b05SRuslan Ermilov.Pq Vt str
391763e2b05SRuslan ErmilovThe name of the host to which you are connected; abbreviated
392763e2b05SRuslan Ermilov.Va ho .
393763e2b05SRuslan Ermilov.It Va linedisc
394763e2b05SRuslan Ermilov.Pq Vt num
395763e2b05SRuslan ErmilovThe line discipline to use; abbreviated
396763e2b05SRuslan Ermilov.Va ld .
397763e2b05SRuslan Ermilov.It Va prompt
398763e2b05SRuslan Ermilov.Pq Vt char
399763e2b05SRuslan ErmilovThe character which indicates an end-of-line on the remote
400d391708cSRuslan Ermilovhost; abbreviated
401763e2b05SRuslan Ermilov.Va pr ;
402d391708cSRuslan Ermilovdefault value is
403d391708cSRuslan Ermilov.Ql \en .
404d391708cSRuslan ErmilovThis value is used to synchronize during data transfers.
405d391708cSRuslan ErmilovThe count of lines transferred during a file transfer command is based
406d391708cSRuslan Ermilovon receipt of this character.
407763e2b05SRuslan Ermilov.It Va raise
408763e2b05SRuslan Ermilov.Pq Vt bool
409763e2b05SRuslan ErmilovUpper case mapping mode; abbreviated
410763e2b05SRuslan Ermilov.Va ra ;
411d391708cSRuslan Ermilovdefault value is
412763e2b05SRuslan Ermilov.Cm off .
413d391708cSRuslan ErmilovWhen this mode is enabled, all lowercase letters will be mapped to
414d391708cSRuslan Ermilovuppercase by
415d391708cSRuslan Ermilov.Nm
416d391708cSRuslan Ermilovfor transmission to the remote machine.
417763e2b05SRuslan Ermilov.It Va raisechar
418763e2b05SRuslan Ermilov.Pq Vt char
419763e2b05SRuslan ErmilovThe input character used to toggle uppercase mapping mode;
420d391708cSRuslan Ermilovabbreviated
421763e2b05SRuslan Ermilov.Va rc ;
422763e2b05SRuslan Ermilovnot set by default.
423763e2b05SRuslan Ermilov.It Va record
424763e2b05SRuslan Ermilov.Pq Vt str
425763e2b05SRuslan ErmilovThe name of the file in which a session script is recorded;
426d391708cSRuslan Ermilovabbreviated
427763e2b05SRuslan Ermilov.Va rec .
428763e2b05SRuslan Ermilov.It Va script
429763e2b05SRuslan Ermilov.Pq Vt bool
430763e2b05SRuslan ErmilovSession scripting mode; abbreviated
431763e2b05SRuslan Ermilov.Va sc ;
432d391708cSRuslan Ermilovdefault is
433763e2b05SRuslan Ermilov.Cm off .
434d391708cSRuslan ErmilovWhen
435763e2b05SRuslan Ermilov.Va script
436d391708cSRuslan Ermilovis
437763e2b05SRuslan Ermilov.Cm true ,
438d391708cSRuslan Ermilov.Nm
439d391708cSRuslan Ermilovwill record everything transmitted by the remote machine in the script
440d391708cSRuslan Ermilovrecord file specified in
441763e2b05SRuslan Ermilov.Va record .
442d391708cSRuslan ErmilovIf the
443763e2b05SRuslan Ermilov.Va beautify
444d391708cSRuslan Ermilovswitch is on, only printable
445d391708cSRuslan Ermilov.Tn ASCII
446d391708cSRuslan Ermilovcharacters will be included in the script file (those characters
447d391708cSRuslan Ermilovbetween 040 and 0177).
448d391708cSRuslan ErmilovThe variable
449763e2b05SRuslan Ermilov.Va exceptions
450d391708cSRuslan Ermilovis used to indicate characters which are an exception to the normal
451d391708cSRuslan Ermilovbeautification rules.
452763e2b05SRuslan Ermilov.It Va tabexpand
453763e2b05SRuslan Ermilov.Pq Vt bool
454763e2b05SRuslan ErmilovExpand tabs to spaces during file transfers; abbreviated
455763e2b05SRuslan Ermilov.Va tab ;
456d391708cSRuslan Ermilovdefault value is
457763e2b05SRuslan Ermilov.Cm false .
458d391708cSRuslan ErmilovEach tab is expanded to 8 spaces.
459763e2b05SRuslan Ermilov.It Va tandem
460763e2b05SRuslan Ermilov.Pq Vt bool
461763e2b05SRuslan ErmilovUse XON/XOFF flow control to throttle data from the remote host;
462d391708cSRuslan Ermilovabbreviated
463763e2b05SRuslan Ermilov.Va ta .
464d391708cSRuslan ErmilovThe default value is
465763e2b05SRuslan Ermilov.Cm true .
466763e2b05SRuslan Ermilov.It Va verbose
467763e2b05SRuslan Ermilov.Pq Vt bool
468763e2b05SRuslan ErmilovVerbose mode; abbreviated
469763e2b05SRuslan Ermilov.Va verb ;
470d391708cSRuslan Ermilovdefault is
471763e2b05SRuslan Ermilov.Cm true .
472d391708cSRuslan ErmilovWhen verbose mode is enabled,
473d391708cSRuslan Ermilov.Nm
474d391708cSRuslan Ermilovprints messages while dialing, shows the current number of lines
475d391708cSRuslan Ermilovtransferred during a file transfer operations, and more.
476d391708cSRuslan Ermilov.El
477d391708cSRuslan Ermilov.Sh ENVIRONMENT
478763e2b05SRuslan Ermilov.Bl -tag -width indent
479d391708cSRuslan Ermilov.It Ev HOME
480d391708cSRuslan ErmilovThe home directory to use for the
481d391708cSRuslan Ermilov.Ic ~c
482d391708cSRuslan Ermilovcommand.
483d391708cSRuslan Ermilov.It Ev SHELL
484d391708cSRuslan ErmilovThe name of the shell to use for the
485763e2b05SRuslan Ermilov.Ic ~!
486d391708cSRuslan Ermilovcommand; default value is
487763e2b05SRuslan Ermilov.Dq Li /bin/sh .
488d391708cSRuslan Ermilov.El
489d391708cSRuslan Ermilov.Sh FILES
490763e2b05SRuslan Ermilov.Bl -tag -width ".Pa /var/spool/lock/LCK..*" -compact
491d391708cSRuslan Ermilov.It Pa /var/log/aculog
492d391708cSRuslan Ermilovline access log
493d391708cSRuslan Ermilov.It Pa /var/spool/lock/LCK..*
494d391708cSRuslan Ermilovlock file to avoid conflicts with
495763e2b05SRuslan Ermilov.Xr uucp 1 Pq Pa ports/net/freebsd-uucp
496d391708cSRuslan Ermilov.El
497c71c6c73SEdward Tomasz Napierala.Sh EXAMPLES
498c71c6c73SEdward Tomasz NapieralaConnect to the first USB serial port at the speed of 115200 baud:
499c71c6c73SEdward Tomasz Napierala.Bd -literal -offset indent
500c71c6c73SEdward Tomasz Napieralacu -s 115200 -l /dev/cuaU0
501c71c6c73SEdward Tomasz Napierala.Ed
502d391708cSRuslan Ermilov.Sh SEE ALSO
503d391708cSRuslan Ermilov.Xr tip 1
504d391708cSRuslan Ermilov.Sh HISTORY
505d391708cSRuslan ErmilovThe
506d391708cSRuslan Ermilov.Nm
507d391708cSRuslan Ermilovcommand appeared in
508d391708cSRuslan Ermilov.Bx 4.2 .
509d391708cSRuslan Ermilov.Sh BUGS
510d391708cSRuslan ErmilovThe full set of variables is undocumented and should, probably, be
511d391708cSRuslan Ermilovpared down.
512