source: trunk/minix/man/man1/term.1@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 2.4 KB
Line 
1.TH TERM 1
2.SH NAME
3term \- turn PC into a dumb terminal [IBM]
4.SH SYNOPSIS
5.in +.5i
6.ti -.5i
7\fBterm\fR [\fIbaudrate\fR]\fR [\fIparity\fR] [\fIbits_per_character\fR]
8[\fB\-\fIdial_string\fR] [\fB\-c\fIkcmd\fR] [\fIdevice\fR]\fR
9.in -.5i
10.br
11.de FL
12.TP
13\\fB\\$1\\fR
14\\$2
15..
16.de EX
17.TP 20
18\\fB\\$1\\fR
19# \\$2
20..
21.SH EXAMPLES
22.EX "term 2400" "Talk to modem at 2400 baud"
23.EX "term 1200 7 even" "1200 baud, 7 bits/char, even parity"
24.EX "term 8 9600 /dev/tty01" "9600 baud, 8 bits/char, no parity, use tty01"
25.EX "term -atdt12345 /dev/tty01" "Start with a command to dial out"
26.EX "term -cH'echo Hello World!' ..." "Bind a shell command to the 'H' key"
27.SH DESCRIPTION
28.PP
29\fITerm\fR allows
30\s-1MINIX 3\s-1
31to talk to a terminal or modem over RS232
32port 1. The program first sets the baudrate, parity and character length,
33and then forks.
34The parent sits in a loop copying from \fIstdin\fR (usually the console's
35keyboard), to the terminal or modem (\fI/dev/tty00\fR).
36The child sits in a loop
37copying from the terminal or modem (\fI/dev/tty00\fR) to standard output.
38Thus when
39RS232 port 1 is connected to a modem, every keystroke typed on the keyboard
40is sent to the modem, and every character arriving from the modem is displayed.
41Standard input and output may be redirected, to provide a primitive file
42transfer program, with no checking. Any argument that starts with
43.B \-at
44is sent out to the modem, usually to dial out. \fITerm\fP accepts
45several commands that are formed by typing the escape character, CTRL-],
46and a letter. Type CTRL-]? to see a list of commands. The subshell command
47is very important, it allows you to type in a ZMODEM command to transfer
48data. Do not quit \fIterm\fR to do this, or your modem line will be reset!
49\fITerm\fP keeps the modem line open on file descriptor 9 while running the
50subshell, so you can type
51.PP
52.in +.5i
53<&9 >&9
54.in -.5i
55.PP
56at the end of your ZMODEM command to connect it to the modem. With
57.BI \-c kcmd
58arguments you can bind shell commands to keys. The character just after
59.BR \-c
60is the key to use, the rest of the characters form the command to bind to the
61key. This command also has the modem open on file descriptor 9.
62.LP
63Important note: to use \fIterm\fR, it is essential that
64\fI/etc/ttytab\fR is configured so
65that there is no login session started on the modem line.
66If there is, both the login session and
67term will try to read from the modem, and nothing will work.
68.SH "SEE ALSO"
69.BR rz (1),
70.BR sz (1).
Note: See TracBrowser for help on using the repository browser.