⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 minicom.1

📁 小型通讯程序的C语言源程序的C语言源程序库
💻 1
📖 第 1 页 / 共 2 页
字号:
Which specific dial string you want to use to connect. There are threedifferent dial strings (prefixes and suffixes) that can be configuredin the \fBModem and dialing\fP menu..TP 1.0i.B D - Local echocan be on or off for this system (if your version of minicom supports it)..TP 1.0i.B E - Script The script that must be executed after a succesfull connection is made(see the manual for runscript).TP 1.0i.B F - UsernameThe username that is passed to the runscript program.  Itis passed in the environment string "$LOGIN"..TP 1.0i.B G - PasswordThe password is passed as "$PASS"..TP 1.0i.B H - Terminal EmulationUse MINIX, ANSI or VT100 emulation..TP 1.0i.B I - Line settingsBaudrate, bits and parity to use for this connection..PD 1.PP.SH CONFIGURATIONBy pressing C-A O you will be thrown into the setup menu. Mostsettings there can be changed by everyone, but some are restrictedto root only. Those priviliged settings are marked with a star (*) here..PP.PD 0.B "Filenames and paths".PP.RS 0.25iThis menu defines your default directories..TP 0.5i.B A - uploadwhere the uploaded files go to..TP 0.5i.B B - downloadYup, you guessed it..TP 0.5i.B C - scriptWhere you keep your login scripts..TP 0.5i.B D - Script programWhich program to use as the script interpreter. Defaults to theprogram "runscript", but if you want to use something else (eg,/bin/sh or "expect") it is possible.  Stdin and stdout are connectedto the modem, stderr to the screen..RS 0.5iIf the path is relative (ie, does not start with a slash) then it'srelative to your home directory, except for the script interpreter..RE.TP 0.5i.B E - Kermit programWhere to find the executable for kermit, and it's options. Some simplemacro's can be used on the command line: '%l' is expanded to thecomplete filename of the dial out-device, and '%b' is expanded tothe current baudrate..RE.RE.PD 1.PP.B "File Transfer Protocols".PD 0.PP.RS 0.25iProtocols defined here will show up when C-A s/r is pressed."Name" is the name that will show up in the menu. "Program" isthe path to the protocol. "NeedName" defines if the program needs anargument, eg. a file to be transmitted. Up/Down definesif this entry should show up in the upload or the download menu.Fullscr defines if the program should run full screen, or thatminicom will only show it's stderr in a window. Finally, IO-Reddefines if minicom should attach the program's standard in and outputto the modem port or not. The old sz and rz are not full screen, andhave IO-Red set. However, there are curses based versions of at leastrz that do not want their stdin and stdout redirected, and run fullscreen.All file transfer protocols are run with the UID of the user, andnot with UID=root. '%l' and '%b' can be used on the command line aswith kermit..RE.PD 1.PP.B "Serial port setup".RS 0.25i.PD 0.TP 0.5i.B *A - Serial device/dev/tty1 for most people, or maybe /dev/tty64 if you use the VCpackage under minix.  /dev/cua<n> or /dev/modem under linux..TP 0.5i.B *B - Lock file locationThis should be /usr/spool/uucp. If this directory does not exist,minicom will not attempt to use lockfiles..TP 0.5i.B *C - Callin programIf you have a uugetty or something on your serial port, it could bethat you want a program to be run to switch the modem cq. port intodialin/dialout mode. This is the program to get into dialin mode..TP 0.5i.B *D - Callout programAnd this to get into dialout mode..TP 0.5i.B E - Baud/Par/BitsDefault parameters at startup..PD 1.PP  If one of the entries is left blank, it will not be used. So if youdon't care about locking, and don't have a getty running on yourmodemline, entries B - D should be left blank.  Be warned! The callinand callout programs are run with the effective user id of "root", eg0!.RE.PP.B "Modem and Dialing".PD 0.PP.RS 0.25iHere, the parameters for your modem are defined. I will not explainthis further because the defaults are for generic Hayes modems, andshould work always. This file is not a Hayes tutorial :-) The onlything worth noticing is that control characters can be sent byprefixing them with a '^', in which '^^' means '^' itself.  Someoptions however, don't have much to do with the modem but more withthe behaviour of minicom itself:.PP.TP 0.5i.B M - Dial timeThe number of seconds before minicom times out if no connection isestablished..TP 0.5i.B N - Delay before redialMinicom will redial if no connection was made, but it first waits sometime..TP 0.5i.B O - Number of triesMaximum number of times that minicom attempts to dial..TP 0.5i.B P - Autobaud detectIf this is on, minicom tries to matchthe dialed party's speed..TP 0.5i.B Q - Drop DTR to hangupNormally minicom hangs up by sending a Hayes-type hangup sequence butif your Minix supports it, it can also hangup by dropping the DTRline..TP 0.5i.B R - Modem has DCD lineIf your modem, and your O/S both support the DCD line (that goes 'high'when a connection is made) minicom will use it..PD 1.PP.RE.RS 0.5i.B Note that a special exception is made for this menu: every user.B can change all parameters here, but they will not be saved..RE.PP.B "Screen and keyboard".RS 0.25i.PD 0.TP 0.5i.B A - Command key isthe 'Hot Key' that brings you into command mode. If this is setto 'ALT' or 'meta key', you can directly call commandsby alt-key instead of HotKey-key..TP 0.5i.B B - Backspace key sendsThere still are some systems that want a VT100 to send DEL instead ofBS. With this option you can enable that stupidity.  (Eh, it's even onby default...).TP 0.5i.B C - Status line isEnabled or disabled. Some slow terminals (for example, X-terminals)cause the status line to jump "up and down" when scrolling, so you canturn it off if desired. It will still be shown in command-mode..RE.PD 1.TP 0.25i.B "Save setup as dfl"Save the parameters as the default for the next time the program isstarted. Instead of dfl, any other parameter name may appear, dependingon which one was used when the program was started..TP 0.25i.B "Save setup as.."Save the parameters under a special name. Whenever Minicom is startedwith this name as an argument, it will use these parameters. Thisoption is of course priviliged to root..TP 0.25i.B "Exit"Escape from this menu without saving.  This can also be done with ESC..TP 0.25i.B "Exit from minicom"Only root will see this menu entry, if he/she started minicom with the '-s'option. This way, it is possible to change the configuration withoutactually running minicom..PD 1.SH "STATUS LINE"The status line has several indicators, that speak for themselves.The mysterious APP or CUR indicator probably needs explanation. TheVT100 cursor keys can be in two modes: applications mode and cursormode. This is controlled by an escape sequence. If you find thatthe cursor keys do not work in, say, vi when you're logged in usingminicom then you can see with this indicator whether the cursor keysare in applications or cursor mode. You can toggle the two with theC-A I key. If the cursor keys then work, it's probably an error inthe remote system's termcap initialization strings (is)..PD 1.SH "SECURITY ISSUES"Since Minicom runs setuid root, you probably want to restrict access toit. This is possible by using a configuration file in the same directoryas the default files, called "minicom.users". The syntax of this fileis as following:.PP.RS 0.5i<username> <configuration> [configuration...].RE.PPTo allow user 'miquels' to use the default configuration, enter the following line into "minicom.users":.PP.RS 0.5imiquels dfl.RE.PPIf you want users to be able to use more than the defaultconfigurations, just add the names of those configurations behind theuser name. If no configuration is given behind the username, minicomassumes that the user has access to all configurations..PD 1.SH MISCIf minicom is hung, kill it with SIGTERM . (This means kill -15, orsince sigterm is default, just plain "kill <minicompid>". This willcause a graceful exit of minicom, doing resets and everything..PPSince a lot of escape sequences begin with ESC (Arrow up is ESC [ A),Minicom does not know if the escape character it gets is you pressingthe escape key, or part of a sequence..PPAn old version of Minicom, V1.2, solved this in a rather crude way:to get the escape key, you had to press it .IR twice .Support for timing (with select) was already built in to minicom(see file wkeys.c) and works great under BSD, but alas, not under Minix.The same problem, but worse, was with Televideo type terminals. Since theyuse a lot of escape sequences that start with 'C-A', you had topress 'C-A' twice when you want to pop up a window or something....PPAs of release 1.3 this has bettered a little: now a 1-second timeoutis builtin, like in vi. And... surprise: a special Minix and Linux-dependant.BR hack " :-) was added. Now, minicom can separate the escape key and"escape-sequences. To see how dirty this was done, look into wkeys.c.But it works like a charm!.SH AUTHORSThe author of minicom and the minicom manual is Miquel vanSmoorenburg (miquels@drinkel.nl.mugnet.org).PPMost of this man page is copied, with corrections, from the minicommanual, but some pieces and the corrections are by Michael K. Johnson(johnsonm@stolaf.edu).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -