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

📄 extra.doc

📁 Unix下的MUD客户端程序
💻 DOC
字号:
VTC Extension Files-------------------This file documents the VTC extension files supplied in the vt/extradirectory.  These extensions provide features not provided by thedistribution library due to limited interest, server specificity andother concerns.  The files are:	activity	Warns on activity in undisplayed remotes	bracket		Command output retrieval	color		Color hilites	cool		Coolmud world support	cquote		Command output quoting	depend		Deal with dependencies among files	disp		Displaying VTC data	filter		Command output filtering	fquote		Maintains a quote file	log_cmd		Logs a command to a file	moo		Moo world support	mush		Mush world support	rmtio		I/O routines for remote systems	unter		Unter world support	watch		Watching for connects/disconnectsTo load these files at startup, create or add to a file called"~/.local.vtc" and add lines like	Load("watch");Dependencies------------Be aware that loading certain files will result in loading other filesif they have not yet been loaded.  For instance, bracket depends onrmtio, and will load rmtio if it has not yet been loaded.activity--------This file starts up a resident process that periodically warns theuser about undisplayed remotes with input waiting.  An undisplayedremote will only produce one warning until it is displayed again.bracket-------This file provides support for command output retrieval for mud, mush, and unter worlds.	 It defines for these types a ->bracket function pointer; it is possible to test for bracketing ability on a given remote by checking whether rmt->type->bracket is non-NULL.  In that case, you can successfully call the functions:	NULL bracket(SPTR cmd, [RMT rmt])	APTR get_bracketed([RMT rmt])	APTR get_cmd_response(SPTR cmd, [RMT rmt])bracket() function issues <cmd> so that the server will bracket it with a prefix and suffix.  get_bracket() returns a list (a 'list' is defined so that *list is the number of elements and list[1..*list] are the elements in the list) containing the output from a bracketed command.  get_cmd_response() combines the previous two functions.	bracket() aborts if bracketing is not defined for <rmt>.The globals prefix and suffix contain the strings produced bybracket() at the beginning and end of command output.color-----This file provides support for color hiliting.	It does this by creating styles above and beyond the four basic ones (S_NORM .. S_HILITE), storing these in a table.  Then a few distribution functions are redefined (echo_style(), list_trigs(), Trig()).  To the /trig command a -s switch is added, for the named style.  For instance:	/hilite -sred * pages: *hilites all pages in red.  (Use 'lred' for bright red.)	 The colors defined are red, green, yellow, blue, magenta, and cyan.The /save command will save color hilites.  If these are reloaded and color.vtc is not loaded, then those triggers will function as normal triggers.  The /list_trigs command, unfortunately, will fail under such circumstances.cool----This file defines a new world type, alongside raw, line-based, and mudworlds.  It adds the command /add_cool and the function add_cool().Coolmud world support translates the Tiny* syntaxes "pageplayer=message" and "wh player=message" to Coolmud syntax.bracket.vtc defines no bracketing method for Coolmud, since nonecurrently exists.cquote------This file is a minor application of bracket.  It quotes the output ofmud commands.  As an example, typing "/cquote score" will sendsomething like:	:> score	:| You have 2347 pennies.The output can be more than one line.  You can achieve the same effectby typing 'score' and ^XQ.depend------This file keeps track of dependencies between extras files.  It isloaded automatically if you load any other extras file.disp----This file defines the d() function, which displays VTC data in avaguely acceptable form.  For instance, "d(3);" displays "3";"d(table(2, 3, 4));" displays "&{ 2, 3, 4 }".  Array elements aredisplayed until a NULL is reached.filter------This file is another application of bracket.  It defines the command/filter, which has the syntax:	/filter [-rv] <pattern> = <command>/filter sends <command> to the server and filters out the lines notmatching <pattern>, which is an smatch expression, unless -r isspecified, in which case it is a regexp.  If -v is specified, /filterfilters out the lines that do match <pattern> instead of those that donot.fquote------This file maintains a quotes file in "~/.vtquotes".  The command"/addquote <line>" will add <line> to the quotes file.  The command"/fquote" will select a random line from the quotes file and quote itto the current remote.  The command "/fquote <pattern>" will select arandom line matching <pattern>.  /fquote will not repeat a line untilit has run out of lines to quote.log_cmd-------This file defines a command	/log_cmd <file> = <cmd>Assuming the current world type supports bracketing, log_cmd willwrite the output of <cmd> to <file>.  The output of <cmd> will not bedisplayed in the current window.moo---This file defines a new world type, alongside raw, line-based, and mudworlds.  It adds the command /add_moo and the function add_moo().  Mooworld support translates the Tiny* syntax "page player=message" and"wh player=message" to MOO syntax.  bracket.vtc uses the Moo commandsPREFIX and SUFFIX instead of the standard mud commands OUTPUTPREFIXand OUTPUTSUFFIX to do bracketing.mush----This file defines a new world type, adding the command /add_mush andthe function add_mush().  Mush worlds contain several extensions.Input is autoquoted so that the % \ { } [ ] ( ) and space charactersare prefixed by a backslash.  This autoquoting takes place normallyon lines beginning with " and :.  If the global mush_meddle istrue, then no lines are autoquoted; if mush_nomeddle is true, then alllines are autoquoted.  Both start out false.If mush_redo_wh is true, whispers will be reformatted as @pemitcommands using a comma in the appropriate place.  This feature may notbe compatible with earlier Muses and earlier Mushes.  Only whispercommands beginning with "wh" or "w" will be reformatted; "whi" or"whisper" commands will not be.  mush_redo_wh starts out false.If mush_redo_say is true, lines beginning with " will be reformattedas pose commands using a comma in the appropriate place.If you are set nospoof on the Mush, this code will filter out theprefixes on lines that do not appear to be spoofs, using fairlycomplex criteria.  The following sort of trigger is also useful:	/trig -Gr ^\[UsefulCommands\(#170\){Moira}[^]]*\] (.*)		= /receive %1to eliminate the prefix on lines that are technically spoofs but are generated commonly by certain system commands.rmtio-----This filter defines some basic remote I/O functions.  The functions are:	SPTR getline([RMT rmt])	SPTR regetline([RMT rmt])	NULL waitfor(SPTR match, [RMT rmt])	NULL waitfor_and_suppress(SPTR match, [RMT rmt])	NULL waitfor_strstr(SPTR what, [RMT rmt])	NULL waitfor_reg(REG reg, [RMT rmt])	SPTR waitfor_reg_and_suppress(REG reg, [RMT rmt])	NULL suppress_until(SPTR match, [RMT rmt])	SPTR suppress_until_reg(REG reg, [RMT rmt])getline() and regetline() call read() and reread() respectively on<rmt>, or on cur_rmt if <rmt> is not specified.  They abort thecalling function if <rmt> is not given and cur_rmt is NULL, or ifread() returns NULL.The remaining functions are self-explanatory.  Functions that returnstrings return the lines matched by the regexp they are passed.  Allfunctions use getline() and regetline() and therefore abort thecalling function under the same circumstances.unter-----This file defines the Unter world type.	 Unters are similar to muds, except that bracketing is done differently in bracket.vtc, the login sequence skips the opening messages, and there is support for Unter portals.watch-----This file adds the /watch, /list_watch, and /unwatch commands.	The/watch <name> command instructs the client to begin watching for<name> connecting or disconnecting on each of the worlds you areconnected to.  /watch operates by reading a WHO list from each mudevery minutes.After watch is loaded, the /save command will save /watches as it doesworlds, macros, and triggers.

⌨️ 快捷键说明

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