📄 _basic.txt
字号:
.*s 1 "Basic Organization"ECU forks to run as two separateprocesses, a transmitter (XMTR) and a receiver (RCVR).The two processescommunicate via signals and a System V shared memory segment.XMTR controls RCVR and terminates it under certain circumstances,called here auxiliary operations. After an auxiliary operationcompletes, XMTR forks again to recreate RCVR..*s 2 "Transmitter Process (XMTR)"XMTRaccepts user input from the computer keyboard; input is recognizedas belonging to one of two types: 1) transmit data and 2)ECU commands. Keyboard inputis passed to the serial line driver until an ECU commandis detected. Commands are prefixed with a .B HOMEkey which causes ECU to accept keyboard data up to the next ENTERkey as command text. After a command has been processed,keyed data is again routed to the serial line..*s 3 "Keyboard Interface"The keyboard driver is set into the raw mode.XMTR reads characters one at a time from the driver.Normally, characters read from the keyboard are passed directly tothe serial line driver. TheASCII ESC ("escape") character is handled as a special case.When a function key is pressed, the keyboard generatesto XMTR an ESC character,followed by more characters describing which function key hasbeen pressed.Pressing the ESC key also causes XMTR to see an ESC character,but with no subsequent function key "suffix".When an ESC character is read, XMTR delays transmission of thecharacter to the line for a short period to determine whetherthe ESC key has been pressed or a function key has been pressed.If no "suffix" is detected, the ESC is passed to the line, havingsuffered an insignificant delay given human typing speeds.If a function key "suffix" is detected, the function key typeis decoded. The.B HOMEkey indicates an ECU command follows. Anyother function key is passed to the function key mapping feature(described later)..*s 3 "ECU Command Assembly"After .B HOMEhas been pressed, XMTR presents a reverse video prompt on thedisplay, indicating its readiness to accept a command. Duringinput, the command may be edited using the same control keysspecified with stty(C). Additonal editingusing the left and right arrow keys and theIns(ert) key are usually available.Command input may be aborted by pressing ESC.When a command string has been assembled, it is passed to thecommand processor, which breaks the command arguments into a tokenarray similar to the argc/argv array. When the command handlerreturns, XMTR returns to its normal mode of copying keyboard data tothe serial line.Further information on XMTR command line processing may be found in later sections titled Line Editing and Interactive Command History..*s 3 "Function Key Mapping"While in tty-to-line mode, function keys other than .B HOMEare available to be mappedto transmit short keystroke sequences on a connection byconnection basis. Under control of the dialing command ("Dial"described below) or the function key control command ("FK"),predefined function key maps may be loaded.Function keys which may be mapped are.B F1through.B F12 ,.B PgUp ,.B PgDn ,.B End ,.B Ins ,.B Del ,andthe cursor control keys.The unshifted keypad '5' key is permanently mapped toproduce a screen snapshot when it is pressed and XMTR isreading from the keyboard.The BackTab (shift Tab) key is permanently mapped to a screenredisplay feature..*s 3 "Auxiliary Operation Control"Certain commands cause ECU to perform what is called anauxiliary operation, requiring temporary termination of theRCVR process. Such operations are not as usefulwith.B cu(C) ,because cu does NOT kill its receiver process at any time.As a result, it impossible to run a modern file transferprotocol since the cu receiver process eats some of thecharacters sent by the remote protocol program.There are two types of auxiliary operations:1) internal interactive command or procedureexecution and 2) external program execution.Certain.B internal.B commandsrequire tight control over the serial line.For instance, the.B dialcommand requires transmitting modem commandstrings and receiving modem response codes. Such functionsare best accomplished by single-process control of the line..B External.B programexecution is of two kinds, file transfer invocationand local shell/command execution.The RCVR process is terminated in any of these cases either toavoid the RCVR swallowing characters intended for othertargets (the modem handler in XMTR or the file transfer protocol)or to avoid having remote data interspersed with the output oflocal programs..*s 2 "Receiver Process (RCVR)"The receiver process reads the incoming serial data stream andpasses it to the user terminal driver through a filter whichscans for events such as the occurrence of ASCII BEL (bell)characters or terminal control sequences. RCVR also handlesthe session logging and ANSI filter functions..*s 3 "ANSI Filter"Since the term "ANSI" is used to describe.B manyvariations on the ANSI X3.64 recommendations for terminal control (read"IBM pseudo-ANSI"), the ECU receiver process has an "ANSI filter" whichattempts to translate incompatible (read "MSDOS") ANSI-like controlsequences to sequences acceptable to the console terminal in use.This includes support for the MS-DOS "save cursor" and "restore cursor"sequences.More information may be found later in "Supported Terminals.".*s 3 "Session Logging"When directed by the user, the RCVR process logs incoming serialdata to a file named on the log command line. The default operationis to filter unprintable characters (other than TAB and NL) from thelog, but raw logging is available with a command option. In a likemanner, the default is for appending to an existing file, but acommand option may specify scratching any previous contents.Log files receive header lines each time the file isopened, stating the logical system name, the telephone numberand the date/time.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -