📄 _startup.txt
字号:
.*s 1 "Starting the Program".*s 2 "Simple Startup - Initial Setup Menu"ECU may be started in a number of ways through use ofcommand line switches, but the easiest is to enter.DS Iecu.DEby itself.In this case, the screen is clearedand the following screen, called the.B setup.B screen ,will be presented..DS L .--[ ecu 3.20-386u wht@n4hgf ]---------------------------------. | | | Destination ________________________________________ | | | | | | | | tty: /dev/tty2b | | | | duplex: F baud: 9600 parity:N (data bits 8) | | add NL to transmitted CR: N | | add NL to received CR: N | | | | | | TAB:next ^B:prev END:proceed ^D:phone dir ESC:quit ecu | `- logical phone directory entry, phone number or empty -------'.DESeveral choices may be made by navigating the setup screen.When you position to a field, helpful text is displayedon the bottom line of the form.It is important to note that you may not exit this screeninto ECU operation without opening a communications line.The initial (default) values for some of the fields may be modifiedby command line switches or by the special procedure "_rc.ep".Also, entering a dialing directory entry name in the 'Destination'field and pressing Return will override the defaults with the valuesin the directory entry.See the sections related to dialingand the section in the Procedure Language manual titled "_rc.ep"..*s 3 "Destination"If a dialing directory has been configured,a literal phone number need not be entered.However, on your first invocation, you'll very likely haveno directory. Therefore, you have three options:.DS I1. Enter a literal telephone number, (e.g. 18005551212). Hyphens and open and close parentheses may also be entered.2. Press ENTER to skip the 'Destination' field and enter ^D to enter the telephone directory to enter your first directory entry.3. Press END to enter interactive mode to communicate directly with the attached DCE (modem)..DE.*s 3 "Other Fields"The 'tty' field may be used to select an outgoing lineother than the default.For important considerations on line choice, see the sectionstitled "Choosing a Dialout Line" and "DCDwatch".The 'duplex' field may be used to select aduplex value other than the default 'F' (full).The 'baud' field may be used to select abaud rate value other than the default selected at Configure time.The 'parity' field may be used to select aparity value other than the default selected at Configure time.The 'Add NL to transmitted CR' and 'Add NL to received CR'fields are usually left defaulted to 'N' (no). If youwill be communicating with a terminal (as in a chat with a human), youwill usually need to set both of these fields to 'Y' aswell as to select 'H'alf duplex..*s 3 "Keyboard Functions"Special keyboard characters while filling in thestartup screen are:.DS I Enter terminate entry in a field (or skip to the next field if you do not modify it) ^B back up to previous field Cursor Up same as ^B (if the key is available on your terminal and environment). TAB move to next field ... if nothing typed in the field, do not disturb contents Cursor Down same as TAB (if the key is available on your terminal and environment). END proceed with session, dialing remote if logical directory entry name or literal telephone number enetered ^D enter phone directory ESC quit ecu without starting a session.DEWhen editing a multicharacter field, such as "tty", you may use thebackspace key in the traditional fashion. Depending on theterminal, ECU version in use (OS in use), and configuration,you may also be able to use the cursor left and right keysand the insert key (to toggle insert mode)..*s 2 "Command Line Switches and Arguments"ECU can be started in a number of ways:.DS Io with no switches or arguments select options interactively; manual command to begin connectiono with switches (excluding -p) and no arguments override some defaults for options but still enter interactive option selection; manual command to begin connectiono zero or more switches (excluding -p) and one argument fully automatic startup to connect to the remote specified by the argument (a telephone number or dialing directory entry)o zero or more switches, with -p the last switch fully automatic startup by executing procedure whose name is specified by the first argument; the initial procedure receives the remainder of the command line arguments.DE.*s 3 "Usage Summary".DS Iusage: ecu [-l <ttyname>] [-b <baud_rate>] [-eon] [-h] [-t] [-P <phonedir>] [-F name] [-T <trace-level>] [-p <initial_proc> [-d] [-D] | <phone_number>]-D unconditionally stop execution when -p initial procedure is done-F sets an alternate funckeymap name for the *keyboard*-P choose alternate phone directory (<phonedir> must be a full pathname)-T set procedure tracing to level: 0=none, 1=standard, 2=ECU-debugging-b choose baud rate (any UNIX rate 110-38400)-d stop execution if -p initial procedure fails-e even parity -o odd parity -n no parity-h half duplex ... default is full duplex-l choose line (/dev/<ttyname>)-p execute an initial procedure-t append NL to incoming and outgoing CR characters<phone_number> is either an actual number or a dialing directory entry name.DE.*s 3 "Switches"Many switches are used to override defaults specifiedat the time the Confifgure procedure was used.Note these defaults may also be overriden interactively if the commanddoes not specify automatic startup option (-p or dialing argument).Also, the value chosen by a dialing directory entry or aninitial procedure will overridethe Configured default and/or the value specified by this switch..*s 4 "-b <baud>"This switch overrides the default baud rate.Any valid UNIX rate may be chosen. ECU chooses the number of stop bits based on the baud rate. Rates below300 baud get 2 stop bits. Rates 300 baud and above get one stop bit..*s 4 "-d"The.B-d switch.Rinstructs ECU to "die" (terminate with error status) ifan initial procedure (-p) fails. This switch ensures a batchECU execution will hang up any connection and terminate ifa procedure error occurs. See also -D below.Absence of the.B -dand.B -Dswitchescauses ecu (upon any completion of theinitial procedure) to enter the 1) interactive mode if a linewas successfully attached by the procedure or 2) the setup screenif no line was attached. .*s 4 "-e, -o, -n"Normally, ECU starts up with data bits and parity chosen atConfigure time. The .B -e ,.B -o and.B -n .B switchesallow you to override the default.Since combinations like eight data bit and even parity orseven data bits and no parity are not in ECU'scapability to use, the parity selection also dictates thechoice of data bits. Even or odd parity implies seven data bits.No parity implies eight data bits..*s 4 "-h"Normally, ECU starts up in the full duplex mode.If half duplex is desired, the.B-h switch.Ris used..*s 4 "-l ttyspec"When ECU starts up, it normally chooses a line as described laterin the section titled "Choosing a Dialout Line".Specifying the.B -l.B switchoverrides the default tty specifiedat Configure time. Depending upon other command line options,this switch may be nothing more than a hint.The argument to the switch is the base nameof the tty (e.g., "tty1a" or "acu0"). On SCO, since ttys are allnamed consistently according to the "/dev/ttyxx" form, you mayomit the "tty" (e.g., "1a" or "4g").For important considerations on line choice, see the sectionstitled "Choosing a Dialout Line" and "DCDwatch"..*s 4 "-p <proc>"The .B-p switch.Rcauses ECU to execute the procedure <proc> ("<proc>.ep")immediately upon startup. Such a procedure is termed the.Binitial procedure..RIt is recommended that, when used, -p be the last switch on thecommand line. All non-switch arguments after <proc> are passedas arguments to the initial procedure (see the descriptions ofthe integer function.B %argcand the string function.B %argv in the Procedure Manual).For example,.DS L ecu -p batchjob remsys 22automatically executes the procedure command equivalent do 'batchjob' 'remsys' '22'.DEThe initial procedure may read command line optionswith functions like.B %line ,.B %baudand.B %parity .It is also free to override any of these values it wishes.See the procedure manual for more information..*s 4 "-t"The.B-t switch.Rinstructs ECU to map incoming and outgoing carriagereturns to carriage return/line feed pairs.This is helpful if the remote connection will be to adisplay terminal rather than a computer. Use of the.B-h switch.Rmay also be necessary.The interactive commands.B nlinand.B nloutalso control this feature..*s 4 "-D"The.B-D switch.Rinstructs ECU to unconditionally terminate when aninitial procedure finishes. Contrast with the.B -d.B switch ..*s 4 "-F name"Normally, the TERM environment variable is used to determine thefunckeymap entry (keyboard configuration) to be used. Sometimes,the TERM variable is not adequate for identifying your keyboardarrangement. The .B-F switch.Rswitch, like the $ECUFUNCKEY environment variable, allows you touse override the funckeymap entry used. For more information,see the section titled "Function Key Mapping (Recognition)"..*s 4 "-P phonedir"The.B-P switch.Rcauses ECU to begin execution using an alternate phone directory. The default is ~/.ecu/phone. You shouldspecify a full pathname if you anticipate using the change directorycommand once ecu starts..*s 4 "-T level"The.B-T switch.Rsets the procedure language trace level. <level> is a decimaldigit. 0 is for no tracing (the default) and 1 is for tracing.Values higher than 1 are for debugging ECU and have varying effectsfrom revision to revision..*s 3 "Non-Switch Arguments"Aguments are optional.<tel-number> or <logical> may appear when the -p switch is absent.One or more <arg> arguments may appear when the -p switch is used.These arguments are handled as described by "-p" above..*s 4 "<tel-number>"This type of argument has a digit as its initial character andrepresents an actual telephone number to be passed to a modemdialer program or Dialers chat script. The string may containnon-numeric characters if appropriate for a dialer program,such as dialTBIT or dialgT2500 (see the gendial subdirectory).For example:.DS L ecu -ltty2a -b 19200 -e 5551212C.DEuses tty2a (assumed to be connected to a Trailblazer modem becauseof the dialer-specific telephone number) andestablishes a 19200 baud, even parity PEP Compressed connectionafter dialing 5551212..*s 4 "<logical>"This type of argument has an alphabetic initial character andcauses the dialing directory entry by that name to be dialed.The line may be specified by '-l', but if the dialing directoryspecifies a line (tty field contains other than 'Any'), thedialing directory entry will override it. The '-b', '-e' and '-o'switches are ignored; the values specified by the dialing directoryentry are used. The '-t' and '-h' switches are valid and honoredif present..*s 4 "<arg>"This type of argument is passed to an initial procedure whenthe -p switch is present..DS Lecu -p unixlogin user pwd ansi43.DEexecutes unixlogin.ep with arguments 'user' 'pwd' 'ansi43'For more detail, refer to the description of -p, -d and -D below..*s 2 "Environment Variables"Prior to starting ECU, it is useful, but not necessary,to establish two environment variables, ECUPROMPT and ECUHELP..*s 3 "ECUPROMPT"The ECUPROMPT environment variable determines the prompt printedby ECU when the interactive command key ("HOME") is pressed.When you first run ECU, try setting it to your name, e. g.,.DS Isetenv ECUPROMPT Ralph if you use cshECUPROMPT=Ralph if you use sh, ksh, etc.export ECUPROMPT.DEThen, when you see how it used, you may wish toestablish a more permanent choice in your .login or .profile..*s 3 "ECUHELP"Ordinarily, ECU looks for interactive command help informationin "ecuhelp.data"(in the ecu library directory, normally /usr/local/lib/ecu).The ECUHELP environment may be set to the completepathname of the ecu help file if an alternate fileis to be used.The help file is explained later in the sectiontitled "Online Command Dictionary"..*s 3 "ECUFUNCKEY"See the description of the .B -Fcommand line switch and the section titled"Function Key Mapping (Recognition)".
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -