tailoring
来自「ftam等标准协议服务器和客户端的源代码。」· 代码 · 共 531 行
TXT
531 行
Tailoring the directory user interface DE Paul Barker Department of Computer Science University College London United Kingdom March 3, 19921 IntroductionDE (which stands for Directory Enquiries) is adirectory user interface primarily intended to serve asa public access user interface. It is a successor to,and borrows something of the style of, the dscinterface released in a previous version. It isprimarily aimed at the novice user, although moresophisticated users should find that it is flexibleenough to answer the majority of queries they wish topose.DE has more features than those discussed below.However, the program has extensive on-line help as itis envisaged that it will often be used in environmentswhere neither on-line help nor paper documentation willbe available.2 Using DE2.1 Starting upDE will work quite happily without any knowledge of theuser's terminal type, assuming a screen size of 80 x 24in the absence of terminal type information. If,however, the user's terminal type is not recognised bythe system, the user will be prompted to try and enteran alternative. The user can examine a list of valid 1terminal types; typing <CR> accepts a terminal type of``dumb''.It is possible to configure DE to force confirmation ofscreen lengths of greater than 24 lines -- this helpswith WAN access as some virtual terminal protocols donot propagate the screen size.2.2 Searching for a PersonThe interface prompts the user for input with thefollowing four questions: Person's name, q to quit, * to list people, ? for help :- barker Dept name, * to list depts, <CR> to search all depts, ? for help :- cs Organisation name, <CR> to search `ucl', * to list orgs, ? for help :- Country name, <CR> to search `gb', * to list countries, ? for help :-Note from the above example that it is possible toconfigure the interface so that local values aredefaulted: RETURN accepts ``ucl'' for organisation,and ``gb'' for country. The above query returns asingle result which is displayed thus: United Kingdom University College London Computer Science Paul Barker telephoneNumber +44 71-380-7366 electronic mail P.Barker@cs.ucl.ac.uk favouriteDrink guinness 16 year old lagavulin roomNumber G21If several results are found for a single query, theuser is asked to select one from the entries matched.For example, searching for ``jones'' in ``physics'' at``UCL'' in ``GB'' produces the following output: United Kingdom 2 University College London Got the following approximate matches. Please select one from the list by typing the number corresponding to the entry you want. 1 Faculty of Mathematical and Physical Sciences 2 Medical Physics and Bio-Engineering 3 Physics and Astronomy 4 Psychiatry 5 PsychologySelecting ``Physics and Astronomy'' by simply typingthe number 3, the search continues, and the followingis displayed: United Kingdom University College London Physics and Astronomy Got the following approximate matches. Please select one from the list by typing the number corresponding to the entry you want. 1 C L Jones +44 71-380-7139 2 G O Jones +44 71-387-7050 x3468 geraint.jones@ucl.ac.uk 3 P S Jones +44 71-387-7050 x3483 4 T W Jones +44 71-380-7150In this condensed format, telephone and emailinformation is displayed.2.3 Searching for other informationInformation for organisations can be found byspecifying null entries for the person and department.Information for departments can be found by specifyingnull input for the person field.Information about rooms and roles can be found as wellas for people by, for example, entering ``secretary''in the person's name field. 32.4 InterruptingIf the user wishes to abandon a query or correct theinput of a query (maybe the user has mis-typed a name),control-C resets the interface so that it is waitingfor a fresh query. Typing ``q'' at prompts other thanthe person prompt results in the user being asked toconfirm if they wish to quit. If the user replys``n'', the interface resets as if control-C had beenpressed.2.5 QuittingType ``q'' (or optionally ``quit'' --- see below) atthe prompt for a person's name. Type ``q'' at otherprompts, and the user is asked to confirm if they wishto quit. If the use replys ``n'', the interface resetsto allow a query to be entered afresh.3 Configuration of DEAs DE is intended as a public access dua, it is onlyconfigurable on a system-wide basis. DE installs helpfiles and the detailor file into a directory called de/under ISODE's ETCDIR.3.1 Highly recommended optionsThe detailor file contains a number of tailorablevariables, of which the following are highlyrecommended:dsa_address: This is the address of the access point DSA. If two or more dsa_address lines are given, the first dsa_address is tried first, the second dsa_address is tried if connecting to the first address fails. Third and subsequent dsa_address entries are ignored. If there is no dsa_address entry in the detailor file, the first value in the dsaptailor file is used. dsa_address:Internet=128.16.6.8+17003 dsa_address:Internet=128.16.6.10+17003 4username: This is the username with which the DUA binds to the Directory. It is not strictly mandatory, but you are strongly encouraged to set this up. It will help you to see who is connecting to the DSA. username:@c=GB@o=X-Tel Services Ltd@cn=Directory Enquiries3.2 Variables you will probably want to configureYou will almost certainly want to set at least some ofthese to suit your local system:welcomeMessage: This is the welcoming banner message. The default is ``Welcome to the Directory Service''. welcomeMessage:Welcome to DEbyebyeMessage: This enables/disables the display of a message on exiting DE. This variable takes the values ``on'' and ``off''. The message displayed is the contents of the file debyebye, which should be placed in the same directory as all DE's help files. The default is not to display an exit message. byebyeMessage:ondefault_country: This is the name of the country to search by default: e.g., ``GB''. default_country:gbdefault_org: This is the name of the organisation to search by default: e.g., ``University College London'' default_org:University College Londondefault_dept: This is the name of the department (organisational unit) to search by default: e.g., 5 ``Computing''. This will usually be null for public access duas. default_dept:3.3 Attribute tailoringThe following configuration options all concern thedisplay of attributes. The settings in the detailorfile will probably be OK initially.commonatt: These attributes are displayed whatever type of object is being searched for, be it an organisation, a department, or a person. commonatt:telephoneNumber commonatt:facsimileTelephoneNumberorgatt: These attributes are displayed (as well as the common attributes --- see above) if an entry for an organisation is displayed. orgatt:telexNumberouatt: These attributes are displayed (as well as the common attributes --- see above) if an entry for an organisational unit (department) is displayed. ouatt:telexNumberprratt: These attributes are displayed (as well as the common attributes --- see above) if an entry for a person, room or role is displayed. prratt:rfc822Mailbox prratt:roomNumbermapattname: This attribute allows for meaningful attribute names to be displayed to the user. The attribute names in the quipu oidtables may be mapped onto more user-friendly names. This allows for language independence. 6 mapattname:facsimileTelephoneNumber fax mapattname:rfc822Mailbox electronic mailmapphone: This allows for the mapping of international format phone numbers into a local format. It is thus possible to display local phone numbers as extension numbers only and phone numbers in the same country correctly prefixed and without the country code. mapphone:+44 71-380-: mapphone:+44 71-387- 7050 x: mapphone:+44 :0greybook: In the UK, big-endian domains are used in mail names. By setting this variable on, it is possible to display email addresses in this order rather than the default little-endian order. greyBook:oncountry: This allows for the mapping of the 2 letter ISO country codes (such as GB and FR) onto locally meaningful strings such as, for english speakers, Great Britain and France. country:AU Australia country:AT Austria country:BE Belgium3.4 Miscellaneous tailoringThere are a number of miscellaneous variables which maybe set.maxPersons: If a lot of matches are found, DE will display the matches in a short form, showing email address and telephone number only. Otherwise full entry details are displayed. This variable allows the number of entries which will be displayed in full to be set --- the default is 3. maxPersons:2 7inverseVideo: Prompts are by default shown in inverse video. Unset this variable to turn this off. inverseVideo:ondelogfile: Searches are by default are logged to the file de.log in ISODEs LOGDIR. They can be directed elsewhere by using this variable. delogfile:/tmp/delogfilelogLevel: The logging can be turned off. It can also be turned up to give details of which search filters are being successful --- this will hopefully allow some tuning of the interface. o Level 0 --- turns the logging off. o Level 1 (the default level) --- logs binds, searches, unbinds o Level 2 --- gives level 1 logs, and logging analysis of which filters have been successful and which failed logLevel:2remoteAlarmTime: A remote search is one where the country and organisation name searched for not the same as the defaults. If the search has not completed within a configurable number of seconds, a message is displayed warning the user that all may not be well. The default setting is 30 seconds. The search, however, continues until it returns or is interrupted by the user. remoteAlarmTime:30localAlarmTime: As for remoteAlarmTime, except for local searches. The default setting is 15 seconds. localAlarmTime:15 8quitChars: The number of characters of the word ``quit'' which a user must type to exit. The default setting is 1 character. quitChars:1allowControlCtoQuit: This enables or disables the feature where a user may exit the program by typing control-C at the prompt for a person's name. The default setting is on. allowControlCtoQuit:onwanAccess: This enables the feature where a user is asked to confirm that the size of their terminal is really greater than 24 lines. This helps with telnet access if the screen size is not propagated. The default setting is off. wanAccess:on4 Dynamic tailoringIt is possible for a user to modify some variables usedby DE while running the program. In particular, thisallows a user to recover from a situation where theterminal emulation is not working correctly --- anapparently frequent occurrence!Dynamic tailoring of variables is offered by use of theSETTINGS help screen. Typing ?settings at any promptwill display the current settings of dynamicallyalterable variables. The user is then offered theopportunity of modifying the variables. Variableswhich may currently be altered in this way are:termtype The user's terminal type, as set in the UNIX ``TERM'' environment variable.invvideo Turn inverse video ``on'' (if the terminal supports it) or ``off''cols Set the width of the screen to a number of columns 9lines Set the length of the screen to a number of lines 10
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?