TERM.1
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:2k
源码类别:
操作系统开发
开发平台:
C/C++
- .TH TERM 1
- .SH NAME
- term - turn PC into a dumb terminal [IBM]
- .SH SYNOPSIS
- fBtermfR [fIbaudratefR]fR [fIparityfR] [fIbits_per_characterfR] [fB-fIdial_stringfR] [fIdevicefR]fR
- .br
- .de FL
- .TP
- \fB\$1\fR
- \$2
- ..
- .de EX
- .TP 20
- \fB\$1\fR
- # \$2
- ..
- .SH EXAMPLES
- .EX "term 2400" "Talk to modem at 2400 baud"
- .EX "term 1200 7 even" "1200 baud, 7 bits/char, even parity"
- .EX "term 8 9600 /dev/tty01" "9600 baud, 8 bits/char, no parity, use tty01"
- .EX "term -atdt12345 /dev/tty01" "Start with a command to dial out"
- .SH DESCRIPTION
- .PP
- fITermfR allows
- s-2MINIXs+2
- to talk to a terminal or modem over RS232
- port 1. The program first sets the baudrate, parity and character length,
- and then forks.
- The parent sits in a loop copying from fIstdinfR (usually the console's
- keyboard), to the terminal or modem (fI/dev/tty00fR).
- The child sits in a loop
- copying from the terminal or modem (fI/dev/tty00fR) to standard output.
- Thus when
- RS232 port 1 is connected to a modem, every keystroke typed on the keyboard
- is sent to the modem, and every character arriving from the modem is displayed.
- Standard input and output may be redirected, to provide a primitive file
- transfer program, with no checking. Any argument that starts with a minus
- ('-') is sent out to the modem, usually to dial out. fITermfP accepts
- several commands that are formed by typing the escape character, CTRL-],
- and a letter. Type CTRL-]? to see a list of commands. The subshell command
- is very important, it allows you to type in a ZMODEM command to transfer
- data. Do not quit fItermfR to do this, or your modem line will be reset!
- fITermfP keeps the modem line open on file descriptor 9 while running the
- subshell, so you can type
- .PP
- .in +.5i
- <&9 >&9
- .in -.5i
- .PP
- at the end of your ZMODEM command to connect it to the modem.
- .LP
- Important note: to use fItermfR, it is essential that
- fI/etc/ttytabfR is configured so
- that there is no shell hanging on fI/dev/tty01fR.
- If there is, both the shell and
- term will try to read from fI/dev/tty01fR, and nothing will work.
- .SH "SEE ALSO"
- .BR rz (1),
- .BR sz (1).