📄 globals.h
字号:
"if", "/usr/lib/lpdfilters/lg02of", "mx", "0", "of", "/usr/lib/lpdfilters/lg02of", "pl", "66", "pw", "80", "xc", "0177777", "xs", "044000", "xf", "/usr/lib/lpdfilters/xf", 0, 0 }, /* LG31 - Serial */ { "lg31", "uv", "4.0", "br", "9600", "fc", "0177777", "fs", "03", "if", "/usr/lib/lpdfilters/lg31of", "mx", "0", "of", "/usr/lib/lpdfilters/lg31of", "pl", "66", "pw", "80", "xc", "0177777", "xs", "044000", "xf", "/usr/lib/lpdfilters/xf", 0, 0 }, /* LJ250 - Serial */ { "lj250", "uv", "4.0", "br", "4800", "fc", "0177777", "fs", "03", "mc", "20", "mx", "0", "if", "/usr/lib/lpdfilters/lj250of", "xf", "/usr/lib/lpdfilters/xf", "pl", "66", "pw", "80", "rw", "on", "sh", "on", "xc", "0177777", "xs", "044000", 0, 0 }, /* LN01 - Parallel */ { "ln01", "fc", "0177777", "fs", "023", "lp", "/dev/lp", "mx", "0", "of", "/usr/lib/lpdfilters/ln01of", "pl", "66", "pp", "/usr/lib/lpdfilters/ln01pp", "pw", "80", 0, 0 }, /* LN01S - Parallel */ { "ln01s", "fc", "0177777", "fs", "023", "lp", "/dev/lp", "of", "/usr/lib/lpdfilters/ln01of", "mx", "0", "pl", "66", "pp", "/usr/lib/lpdfilters/ln01pp", "pw", "80", "vf", "/usr/lib/lpdfilters/ln01vf", 0, 0 }, /* LN03 - Serial */ { "ln03", "uv", "4.0", "br", "4800", "fc", "0177777", "fs", "03", "if", "/usr/lib/lpdfilters/ln03of", "of", "/usr/lib/lpdfilters/ln03of", "xf", "/usr/lib/lpdfilters/xf", "mx", "0", "pl", "66", "pw", "80", "rw", "on", "xc", "0177777", "xs", "044000", 0, 0 }, /* LN03S - Serial */ { "ln03s", "uv", "4.0", "br", "4800", "fc", "0177777", "fs", "03", "if", "/usr/lib/lpdfilters/ln03of", "mc", "20", "mx", "0", "of", "/usr/lib/lpdfilters/ln03of", "xf", "/usr/lib/lpdfilters/xf", "pl", "66", "pw", "80", "rw", "on", "xc", "0177777", "xs", "044000", 0, 0 }, /* LN03R - Serial */ { "ln03r", "uv", "4.0", "br", "9600", "fc", "0177777", "fs", "03", "if", "/usr/lib/lpdfilters/ln03rof", "mc", "20", "mx", "0", "of", "/usr/lib/lpdfilters/ln03rof", "xf", "/usr/lib/lpdfilters/xf", "pl", "66", "pw", "80", "rw", "on", "xc", "0177777", "xs", "044000", 0, 0 }, /* LP25 - Parallel */ { "lp25", "lp", "/dev/lp", "mx", "0", "of", "/usr/lib/lpdfilters/lpf", 0, 0 }, /* LP26 - Parallel */ { "lp26", "lp", "/dev/lp", "mx", "0", "of", "/usr/lib/lpdfilters/lpf", 0, 0 }, /* LP27 - Parallel */ { "lp27", "lp", "/dev/lp", "mx", "0", "of", "/usr/lib/lpdfilters/lpf", 0, 0 }, /* LP29 - Parallel */ { "lp29", "lp", "/dev/lp", "mx", "0", "of", "/usr/lib/lpdfilters/lpf", 0, 0 }, /* LQP02 - Serial */ { "lqp02", "uv", "4.0", "br", "4800", "fc", "0177777", "fs", "023", "mx", "0", "of", "/usr/lib/lpdfilters/lqf", "pl", "66", "pw", "80", "rw", "on", 0, 0 }, /* LQP03 - Serial */ { "lqp03", "uv", "4.0", "br", "4800", "fc", "0177777", "fs", "023", "mx", "0", "of", "/usr/lib/lpdfilters/lqf", "pl", "66", "pw", "80", "rw", "on", 0, 0 }, /* LVP16 - Serial */ { "lvp16", "uv", "4.0", "br", "9600", "fc", "0177777", "fs", "03", "mx", "0", "if", "/usr/lib/lpdfilters/xf", "rw", "on", "sh", "on", "xf", "/usr/lib/lpdfilters/xf", 0, 0 }, /* PRINTSERVER - Network */ { "printserver", "uv", "4.0", "ct", "network", "pp", "pr_call %x %D %F %O %W %L %T", "ps", "LPS", "Dl", "/usr/lib/lpdfilters/lps_v3.a", "Da", "ascii", "Sd", "a", "of", "/usr/lib/lpdfilters/lpscomm NODE %U %H %J", 0, 0 }, /* REMOTE SYSTEM FOR PRINTERS */ { "remote", 0, 0 }, /* UNKNOWN PRINTERS */ { "unknown", 0, 0 }, /* NULL */ { 0, 0, 0 }};/************************************************** This structure maps a command character string* against an integer code*************************************************/struct cmdtyp cmdtyp[] ={ "?", HELP, "add", ADD, "delete", DELETE, "exit", QUIT, "help", HELP, "list", LIST, "modify", MODIFY, "no", NO, "print", PRINT, "quit", QUIT, "view", VIEW, "yes", YES, "printer?", PRINTER_INFO, "none", NO, 0, 0};/******************************************* the following arrays hold the help text* associated with each function and are* referred to specifically by the function.******************************************/char h_help[] ={"\n\This program helps you to set up your printers. \n\ \n\Select a command from the Main Command Menu by typing one of the \n\commands listed (or just the first letter of the command) \n\and pressing RETURN. You will then be prompted to enter \n\the number of the printer (for example 0 or 1). Then you will be \n\prompted for other responses, depending on the command. \n\ \n\For all prompts, a default response value is given in \[ \]. To use \n\the default, just press RETURN. You can always enter '?' for help. \n\ \n\Some knowledge of the printer and its installation is required \n\in order to correctly use this program. Refer to the passage \n\in the System Management Guide for general requirements. \n\Chapter 4 - The Print System \n\ \n\Most of the setup activities require you to enter values for symbols \n\in the file /etc/printcap. Refer to printcap(5) in the \n\Ultrix Reference Pages for a summary of the possible symbols \n\for /etc/printcap. This program provides a detailed explanation \n\of each printcap symbol in response to '?' after a symbol name \n\has been specified and a value for the symbol is prompted. \n\ \n\The Available commands are: \n\ \n\ add -> add a new printcap entry (local and remote) \n\ delete -> delete a printcap entry (local and remote) \n\ modify -> modify a printcap entry (local and remote) \n\ view -> view the contents of the printcap file \n\ exit -> exit or quit lprsetup \n\ quit -> quit or exit lprsetup \n\ ? -> ask for help (at any prompt) \n\ help -> ask for help (at any prompt) \n\ \n\Commands may be abbreviated to their first letter. \n\Any command can be quickly exited by typing a Control-D \n\\n\"};char h_doadd[] ={"\n\Enter a printer name, ie., the name by which you want to identify \n\the printer through the lpr command, example: lpr -Pprintername. \n\Lprsetup uses an internal numbering scheme from 0 to 99. The \n\next available number is the default name, you may chose the \n\default by simply pressing RETURN or enter any other alphanumeric \n\name that is appropriate. Lprsetup will always assign at least \n\two printer synonyms: the default number and 'lp default number', plus \n\any others you specify, both here and later when specifying synonyms. \n\If the default number was 1, the two names would be '1' and 'lp1'. \n\This printer could then be identified with 'lpr -P1' or 'lpr -Plp1' \n\If you only have one printer or are entering the first of many \n\printers, the first one will have a printer number of 0. This is \n\recognized as your system's default printer and will have an \n\additional name of just 'lp'. This means if you use 'lpr' without \n\specifiying a specific printer this is the one it will use. \n\"};char h_dodel[] ={"\n\This section deletes an existing printer. \n\Enter the name of the printer. The name must be one of the printer's \n\synonyms. The name of the printer that you enter must match \n\that of a printer in the /etc/printcap file in order to delete it. \n\\n\The entry is removed from the printcap file, the spooling direcory \n\is deleted, along with the accounting and error log files, if used. \n\"};char h_domod[] ={"\n\This section modifies one or more existing printcap entries. \n\Enter the name of the printer. The name must be one of the printer's \n\synonyms. The name of the printer that you enter must match \n\that of a printer in the /etc/printcap file in order to modify it. \n\You will then be prompted to name the symbol in /etc/printcap which \n\you wish to change. You may instead enter 'p' to print all of the \n\current printcap parameters; 'l' to list all of the possible printcap \n\symbols and defaults; or enter 'q' (for quit) to return to the \n\main Command menu. \n\"};char h_symsel[] ={"\n\Enter the name of the printcap symbol you wish to modify. Other \n\valid entries are: \n\ 'q' to quit (no more changes) \n\ 'p' to print the symbols you have specified so far \n\ 'l' to list all of the possible symbols and defaults \n\The names of the printcap symbols are: \n\\n\"};char h_synonym[] ={"\n\Enter alternate names for this printer. Some examples include \n\'draft', 'letter', and 'LA-75 Companion Printer'. If the name \n\contains blanks or tabs it is assumed to be last. You can enter as many \n\alternate names for a printer as you like, but the total length of \n\the line containing the names must be less than 80 characters. \n\After entering a synonym, you will be prompted again. If you do not \n\wish to enter any more synonyms, press RETURN to continue. \n\ \n\Each synonym (including the printer number) identifies the printer \n\to the print system. For example, if you enter the synonym 'draft' \n\for this printer, then the command 'lpr -Pdraft files ...' \n\will print files on this printer. \n\"};char h_type[] ={"\n\Printers are listed by type and only those supported by DIGITAL. \n\These printers have some default values already included in the \n\setup program. \n\ \n\Other printers can be set up by using 'unknown' and then \n\responding to the prompts, using values similar to those for \n\supported printers. \n\ \n\Responding 'remote' allows you to designate a remote system \n\for printing. In this case, only four printcap entries are required: \n\rm (name of the remote system), rp (name of the printer on the \n\remote system), sd (pathname of the spooling directory on \n\this system, and lp (the local line printer device - which is always \n\null) the lp parameter must be present in order to print to a remote \n\printer. \n\ \n\Responding 'printer?' allows you to enter a mode where more information \n\can be requested for each printer type. In this mode you will be \n\prompted to enter the same printer types as above. Information about \n\the printer and the default printcap entries for that printer will be \n\displayed. Enter 'quit' to return to the prompt to select the printer \n\type being added. \n\ \n\When specifying printer type full command names and printer names \n\must be used. \n\ \n\The default printer type is 'unknown'. \n\\n\"};char h_default[] ={"\n\Enter a new value, or press RETURN to use the default. \n\"};char h_addcmnts[] ={"\n\Add Comments allows you to add comments to the printcap file while \n\still running lprsetup. The comments will be insert directly above \n\the printcap entry in the printcap file. The default is not to enter \n\any comments so simply press RETURN when prompted if you do not want \n\to enter comments. Any other response will assume that you do. At the \n\'# ' prompt enter your comment, press RETURN at the '# ' prompt to \n\exit. \n\\n\"};char h_printype[] ={"\n\Printer Type allows you to request more information on a specific \n\printer type. Specify one of the supported printers, 'remote', or \n\'unknown' at the prompt. Type 'quit' to exit this mode. More \n\information about that printer is displayed, including the default \n\printcap settings. \n\ \n\The Supported printers are: \n\\n\"};char isnotused[] ={"feature is not used with \n\the parallel line printer interface. You would only \n\specify this symbol for a printer which is connected via \n\a serial terminal line. \n\"};/****************************************************** This structure maps a printer type character string* against an integer code******************************************************/struct prnttyp prnttyp[] ={ "?", PTHELP, "help", PTHELP, "quit", PTQUIT, "exit", PTQUIT, "la50", LA50, "la75", LA75, "la100", LA100, "la120", LA120, "la210", LA210, "lcg01", LCG01, "lg01", LG01, "lg02", LG02, "lg31", LG31, "lj250", LJ250, "ln01", LN01, "ln01s", LN01S, "ln03", LN03, "ln03s", LN03S, "ln03r", LN03R, "lp25", LP25, "lp26", LP26, "lp27", LP27, "lp29", LP29, "lqp02", LQP02, "lqp03", LQP03, "lvp16", LVP16, "printserver", PRINTSERVER, "remote", REMOTE, "unknown", NOTKNOWN, 0, 0};/****************************************************** The following arrays contain help information* about new printer supported by DIGITAL******************************************************/char h_la50 [] ={"\n\The desktop LA50 serial printer is compact, lightweight and is \n\designed for use with Digital's personal computers and video \n\terminals. A serial printer using dot-matrix technology, the LA50 \n\
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -