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

📄 _features.txt

📁 一个通讯程序源码
💻 TXT
📖 第 1 页 / 共 3 页
字号:
.*s 1 "Features".*s 2 "Supported Terminals"ECU supports many terminals with geometries between 20 and 43lines, inclusive.  The column width must be 80.The termcap entry for a console (user tty rather than the line)MUST contain a valid entry for the database entries listed below.ECU does not attempt to support terminal emulation in the classicsense of the word.  It presents to the remote host an "ANSI-like"terminal type as described earlier in the introduction and in the section titled "ANSI Filter."However, it does support, with limitations, any LOCAL terminal(console) for which a valid termcap description exists. You MAYbe able to use ECU with a remote terminal (calling into UNIX/XENIXover a network or modem), but you may get unfavorable results withfunction key usage if your modem is a "packetizing" type, such asa Telebit or if ethernet or other networking chops up your keystrokesequences.  ECU allows approximately 100 milliseconds after receivingan ASCII ESC character for later characters of a function key sequenceto arrive.  If at least one character of the sequence has not beenreceived in that time, ECU treats the key as an ESCape, not a function key.This typical problem of detecting ESC vs. function key is unfortunate, butwe must live with it until paradigms change (say, in about 2010?).The termcap entry for a consoleMUST contain a valid entry for the following database entries:.DS Lcl      clear screenkl      cursor leftkr      cursor rightdc      delete characterdl      delete linecd      clear to end of displayce      clear to end of lineic      insert characteral      insert line ("add" a "line")cm      cursor motionso      stand out (terminal specific attention getter)se      stand end.DEThe above sequences MUST be present, valid and reasonablyefficient.  ECU does not use curses during it's primary mode ofoperation (keyboard send-receive). Unlike curses, ECU makes noattempt to emulate missing terminal functionality.  Failure toprovide valid entries will result in strange behavior with nowarning.Note that the formal termcap description of "kl" and "kr" state these are sequences generated by the terminal.B keyboard ,but ECU expects that these sequences also cause the desiredeffects when.B sentto the.B screen .Additionally, the following, optional, sequences will be used ifthey are detected..DS Lmb      bold on ("XENIX" extension)me      bold off ("XENIX" extension)us      underscrore onue      underscrore offvb      visual bell.DEOn SCO, termcap terminal contrtol is used.  Otherversions use terminfo.A future SCO version of ECU may use terminfo instead of termcap.Problems with terminfo prevent its use at the present time.In addition, early versions of XENIX do not support terminfo.On SCO multiscreens, SCO "extensions" to "ANSI" are supportedas described below in "Multiscreen Local Terminals.".*s 2 "Host Video Control Sequences".*s 3 "All Local Consoles (Terminals)"The following sequences are recieved over the lineby ECU and properly interpreted for all local terminal types(multiscreen, rlogin/xterm pseudotty, serial)..DS LSequence  | Description----------+-------------------------------ESC [ @   | ICHESC [ A   | CUUESC [ B   | CUDESC [ C   | CUFESC [ D   | CUBESC [ E   | CNL       See ANSI X3.64,ESC [ F   | CPL       screen(HW) and/orESC [ H   | CUP       MS-DOS TechnicalESC [ J   | ED        Reference ManualESC [ K   | ELESC [ L   | ILESC [ M   | DLESC [ P   | DCHESC [ S   | SUESC [ T   | SDESC [ X   | ECHESC [ `   | HPAESC [ a   | HPRESC [ d   | VPAESC [ e   | VPRESC [ f   | HVPESC [ ? m | SGRESC [ n   | DSRESC [ s   | save cursor MS-DOSismESC [ u   | restore cursor MS-DOSism.DE.DS LSGR Sequences for ALL TERMINALSSequence  | Description   |  Maps to termcap----------+---------------+-------------------------------ESC [ 0 m | normal        |  "se"+"me"+"ue"ESC [ 1 m | bold          |  "so"ESC [ 4 m | underscore    |  "us"ESC [ 5 m | blink         |  "mb" (XENIX extension)ESC [ 7 m | reverse video |  "so".DE.*s 3 "Multiscreen Local Terminals"In addition to the above, if you are operating from an SCO colormultiscreen, additional (SCO and MS-DOS/ANSI.SYS) sequencesare supported (see screen(HW)):.DS LAdditional Multiscreen SGR SequencesSequence    | Description  (no termcap mapping)------------+-----------------------------------------------ESC [ 8 m   | non-displayESC [ 1 0 m | select primary fontESC [ 1 1 m | select first alternate font (0x00-0x1F)ESC [ 1 2 m | select second alternate font (0x80-0xFF)ESC [ 3 0 m | black foregroundESC [ 3 1 m | red foregroundESC [ 3 2 m | green foregroundESC [ 3 3 m | brown foregroundESC [ 3 4 m | blue foregroundESC [ 3 5 m | magenta foregroundESC [ 3 6 m | cyan foregroundESC [ 3 7 m | white foregroundESC [ 3 8 m | enables underline optionESC [ 3 9 m | disables underline optionESC [ 4 0 m | black backgroundESC [ 4 1 m | red backgroundESC [ 4 2 m | green backgroundESC [ 4 3 m | brown backgroundESC [ 4 4 m | blue backgroundESC [ 4 5 m | magenta backgroundESC [ 4 6 m | cyan backgroundESC [ 4 7 m | white background.DE.s 3 "MS-DOS 'SGR Gaggles'"ECU also does it's best to interpret MS-DOS "SGR gaggles" such as.DS IESC [ 5 ; 3 4 ; 4 7 m.DEwhich means "set the terminal to white background withblue blinking foreground.".*s 3 "Character Mapping"Most versions of ECU running on an AT style machine attempt touse the ruling characters in the video display adapter's ROMper:.DS LMapped Characters (see pc_scr.h):Hex  | Description-----+---------------------------0xDA | top left single rule0xBF | top right single rule0xC0 | bottom left single rule0xD9 | bottom right single rule0xC3 | left hand T0xB4 | right hand T0xB3 | vertical rule0xC4 | horizontal rule.DEOn non-AT machines (or in such environments as X11), the PC ROMsingle ruling characters from the following table are mappedafter the fashion of:.DS L       .-----+--------.       |     |        |       |     +--------+       |     |        |       +-----+        |       |     |        |       `-----+--------'.DE(Due to laziness on the part of the author, doubleruling characters will appear as random druk, unless your terminalhas joined the Church of the True-Blue ROM.One day an X version of this program may appear and you can chooseto no longer accomplish real work, but may spend your days editing42Kb resource files which will give you TAC, Total Anal Control,over all this.).*s 2 "Function Key Mapping (Recognition)"(This section reflects the changes in keyboard management madein version 3.20.)ECU recognizes 23 function keys as having special significanceto its operation.They are:.DS IName      Description --------  ------------F1        F1         F2        F2        F3        F3          F4        F4          F5        F5          F6        F6          F7        F7          F8        F8          F9        F9          F10       F10         F11       F11         F12       F12         Home      Home        End       End         PgUp      Page up     PgDn      Page down   CUU       Up arrow    CUD       Down arrow  CUL       Left arrow  CUR       Right arrow CU5       "Cursor 5"  Ins       Insert      BkTab     Back Tab    .DEECU matches a function key sequenceto an internal function key representationby testing all keystroke sequences against an internal table loadedat the beginning of execution from the file ~/.ecu/funckeymap.A default funckeymap file placed in the ECU library directory(normally /usr/local/lib/ecu) by the software installation process.  If there is no funckeys in the user's home directory, the defaultfile is used.NOTE that supported terminals MUST employ function keys which generatesequences less than 32 characters in length.X11 xterms and X terminals usually require special attentionwith VT100.Translations overrides.  Sometimes an xmodmap must also beemployed.  Experimentation is the best teacher, but the suppliedfunckeymap file and various READMEs offer some hints.  In particular,README.KEYBRD contains information that is kept current.Several predefined entries are supplied with the program distributionin models/funckeymap.If you have a terminal or console with a keyboard not alreadyin this file, you must construct one using the terminal's referencemanual or by direct discovery (typing the key and empricially notingits generated sequence).The program kbdtest3 (the source is provided in the distribution) canassist you in building funckeymap entries.certain keys are pressed.  kbdtest.c is a more primitive version ofthe same program.Normally, the TERM environment variable is used to determinethe funckeymap entry to be used.  Sometimes, the TERM variableis not adequate for identifying your keyboard arrangement.  Forinstance, suppose you use an xterm on the console at times andan X terminal at other times.  The choice of function keysand the character sequences they emit are not likely to match.Rather than make herculean efforts with xmodmap and translations,you can define two different funckeymap entries, say "xterm-sco"and "xterm-ncd".The environment variable ECUFUNCKEY, if found, overrides theTERM variable for funckeymap keyboard management only.  TERM is always used for identifying the display.Thus, you can set TERM to "xterm" and ECUFUNCKEY to "xterm-sco"OR "xterm-ncd".Also, the -F command line switch may be used (which overrides $ECUFUNCKEY).The format of an file entry is shown below.Lines beginning with '#' are comments..DS I#+------------------------------# SCO#-------------------------------ansiansi43sco    F1:F1:          esc [ M     F2:F2:          esc [ N     F3:F3:          esc [ O     F4:F4:          esc [ P     F5:F5:          esc [ Q     F6:F6:          esc [ R     F7:F7:          esc [ S     F8:F8:          esc [ T     F9:F9:          esc [ U     F10:F10:        esc [ V     F11:F11:        esc [ W     F12:F12:        esc [ X     Home:Home:      esc [ H     End:End:        esc [ F     PgUp:PgUp:      esc [ I     PgDn:PgDn:      esc [ G     CUU:CUU:        esc [ A     CUL:CUL:        esc [ D     CU5:CU5:        esc [ E     CUR:CUR:        esc [ C     CUD:CUD:        esc [ B     Ins:Ins:        esc [ L    BkTab:BackTab:  esc [ Z.DEThe first line(s) in a terminal keyboard description begin incolumn 1 and contain the terminal types (a la $TERM) for whichthe keyboard description are valid.  The example entry containsseveral references to terminal types containing the substring'ansi'.  These are included only as an example of one keyboarddescription servicing multiple terminal types.Following the "first lines" are key definition entries, eachpreceded by at least one tab or space.  Each entry is composed ofthree fields delimited by commas.  The first field of an entry isthe internal ECU function key name and must be chosen from thefollowing strings (with no regard to case): "F1", "F2", "F3","F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "Home","End", "PgUp", "PgDn", "CUU" (cursor up), "CUL" (cursor left),"CU5" (unshifted cursor pad 5), "CUR" (cursor right) and "CUD"(cursor down). Thesecond field contains the name of the key as it appears on thekeyboard (such as "F16" for End on the Wyse 60).  Thethird field is a description of the character sequence generatedby the keyboard when the chosen key is pressed; it is astring of one or more tokens separated by spaces or tabs.In addition, function key sequences may not exceed 31 characters in length.PLEASE NOTE: ECU does not have a reasonable way for you to terminate itif there are no Home and End keys defined, so it refuses to proceedif no definitions are found.  Even so, if you have incorrect definitions,you may not be able to get out of ECU without a kill -1 <pid> fromanother terminal or hanging up your connection with UNIX/XENIX

⌨️ 快捷键说明

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