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

📄 dist.doc

📁 Unix下的MUD客户端程序
💻 DOC
📖 第 1 页 / 共 2 页
字号:
/list_defs [<pattern>|<name>]Lists macro definitions.  In this listing command as with others, if<pattern> is specified (the argument is considered a pattern if itcontains * or ?), the distribution only displays those entries whosenames match <pattern>.	If <name> is specified, the distributiondisplays a detailed listing of the entry matching <name>./list_gags [<pattern>]Lists gag triggers.  The numbers by the triggers can be used by/untrig to remove them.	 <pattern> applies to the names of the gagtriggers, not to their matching patterns.  For a detailed listing of atrigger, use /list_trigs./list_hilites [<pattern>]Lists hilite triggers./list_keysLists key bindings./list_norms [<pattern>]Lists triggers that are not gags or hilites./list_trigs [<pattern>|<name>]Lists triggers.	 Can also be used to display a detailed listing of aparticular trigger by specifying its name or number.  To specify itsnumber, preceed the name with a '#', e.g. "/list_trigs #7"./list_worlds [<pattern>|<name>]Lists world entries./load <file>Loads <file> as a VTC file.  The extension ".vtc" may be dropped./load searches the current directory and the directories in load_path(defined in main.vtc), which in the archive distribution includes:	~/vt/dist	/usr/local/lib/vt	~/vt/extra	/usr/local/lib/vt/extra	~/vt	~To load a file of VTC commands, see "obscure features"./log [<file>]Displays the logging status for the current remote if <file> is notspecified, or begins logging to <file> on the current remote if it is.Use "/log off" to stop logging./more [on|off]Turns the pager on or off for a window.	 When on, the output routinepauses each time windowfull of text has been displayed.	 The indicator"[PAUSE]" is displayed on the divider at the bottom of the appropriatewindow, and you can press TAB while in that window to continue, pressESC Q to discard output in that window up until the current time, orenter /more off to turn off the pager.To set the default pager status, see "obscure features"./parse <text>Sends <text> to the parser.  Equivalent to \<text>, except that thecommand form undergoes argument substitutions./path <path>Sets the load path to <path>.  Use ; to separate directories.  Thedefault is "~;~/vt;~/vt/dist;/usr/local/lib/vt"./quitExits VT./quote [-<delay>] <prefix>['!]<file/cmd>Quotes a file or shell command.	 To quote a file, do, for instance:	/quote :| 'filenameTo quote a shell command:	/quote :| !commandIf <delay> is specified, then there is a pause of <delay> secondsbetween lines.	You can stop a runaway /quote process with the console(^C C and delete appropriate programs from (G)eneral (S)leep).You can use a suffix with /quote by placing the filename or command inquotes.	 For instance:	/quote :checks the time, and sees that it is !"date".If <file> or <command> contain any quote characters, escape them witha backslash./recall [-aghnl] [-w<world>] <lines> [<pattern>]Displays the most recent <lines> lines matching <pattern> from thehistory buffer, or any lines if <pattern> is not specified.  Theswitches are:	-a	Display lines from any remote, not just the current		remote	-g	Obey gags, that is, do not display lines that were		gagged by triggers	-h	Obey hilites	-n	Display world names (useful with -a)	-l	Display line numbers	-w	Display lines from the given world, rather than the		current remote (useless with -a)To display a range of lines other than the most current ones, or toset the history size, see "obscure features"./receive <line>Pretends <line> has been received by the current remote.  Beware ofinfinite loops resulting from this./repeat [-<delay>] <number> <command>Executes <command> <number> times./resize <size>Resizes the current window to size <size>, by moving the divider atthe bottom of the window./save [<file>]Saves the current settings information to <file> or the default savefile, which is usually "~/.settings.vtc".  Settings include worldentries, macro definitions, and trigger definitions.  If <file> isspecified, that becomes the new default save file for the remainder ofthe session.  To set the default save file without saving, or to saveonly certain piece of information, see "obscure features"./send <text>Sends <text> to the current remote./sh <command>/shw <command>Executes <command> in a shell.	/sh positions the cursor at the bottomof the screen and waits for a keypress when done, appropriate forrunning, say, vi, while /shw positions the cursor in the activewindow, appropriate for a non-interactive command./split <row>Splits the current window in two, at <row>.  Rows are numberedstarting at 0./trig [+|-e1hg] [-p<pri>] [-n<name>] [-w<world>] <pattern> = <cmd>Creates a new trigger.	This is similar to /gag and /hilite except theline is neither suppressed nor boldfaced.  The switches are:	+e	The trigger is disabled until it is enabled with /edit	-1	The trigger only goes off the first time it is hit	-h	The trigger is a hilite trigger (as with /hilite)	-g	The trigger is a gag trigger (as with /gag)	-p	Set trigger priority (q.v.)	-n	Give the trigger a name	-w	Make trigger specific to <world>Trigger priority can be used to preempt other triggers.	 If a linematches several triggers and they are of different priorities, onlythe trigger(s) at the highest priority level go off.  The defaultpriority level is 0.To create gag triggers that do not place lines matching them in thehistory buffer, see "obscure features"./undef <name>|<pattern>Deletes the macro with the name <name>, or all macros with namesmatching <pattern>./untrig <name>|<pattern>|<number>Deletes the trigger with the name <name>, or names matching thepattern <pattern>, or with the number <number>./unworld <name>|<pattern>Deletes the world with the name <name>, or names matching the pattern<pattern>./versionDisplays the current version number.  In previous versions, this wouldbe \echo(version, "\n");/world [-]<name>Connects to the world matching <name> and displays it in the currentwindow.	 If the '-' is included, disables automic login for muds./wrapspace <spaces>Sets the number of spaces to indent the second and subsequent lines ofa wrapped line.Obscure features----------------These features are specialized enough that no command-line syntax isprovided to access them.  In most cases, it is possible to createmacros to access these features if desired.  For instance, the VTCcommand to save macros to a file is "save_one(.save_macros,filename);"  We can make this a command, even:	func Save_macros(name) { save_one(.save_macros,		*name ? name : "~/.macros.vtc"); }	add_cmd("save_macros", 1, .save_macros, \		"/save_macros [filename]");Some of these features involve setting globals.	 It is convenient toplace commands of this nature in ~/.local.vtc, which is automaticallyloaded by the distribution code.  For instance, the author keeps,among other things, the following commands:	line_numbers = 1; // Display line numbers	bind(ctrl("^f"), .next_win); // ^F for next window	bind(ctrl("^b"), .prev_win); // ^B for previous window	Load("mush"); // Load Mush world support file	Load("unter"); // Load Unter world support fileCalling commands by VTC: It is easy to call commands within VTC code.	The Load() commands above are an example.  The command handler	for every VTC command is the name of the command with the	first letter in uppercase.  In general, commands that take	space-separated arguments, e.g. /add_mud, take their arguments	as separate strings, as in "Add_mud("Name", "Addr", "Port",	"Char", "Pwd");" while other commands take one string	argument, as in "Trig("-g Druid*");"	A less direct way of calling commands is to call	process_cmd(), which interprets a line of text just as if it	had come from the keyboard.  For example:		process_cmd("/send :| %{" + itoa(lineno) + "}");Line numbers: If the line_numbers global is on, then the distribution	code displays incoming remote server lines with their line	numbers in the history buffer.	This is helpful for the %{...}	substitution.Loading distribution commands: The load_cmd() function will load a	file of distribution commands; a file full of macro	definitions using /def commands, for instance.Default pager status: The global default_pager_state is used to	initialize the pager status (on or off) of windows when they	are created.  It is normally 0.Minimal range of history lines: The function histdump(start, end)	displays a list of history lines.  It displays lines from any	remote, with line numbers and world names, and obeys hilites	(but not gags).Default save file: The global default_save_file contains the name of	the default save file.	It is initialized to "~/.settings.vtc"	in misc.vtc.Saving only some information: The function save_one() will save just	one of the three groups of settings information.  The format	is save_one(function, filename), where function is one of		.save_worlds		.save_macros		.save_trigsNo-history gag triggers: Triggers that modify incoming text shouldn't	store their matches in the history buffer.  This is possible	with the /trig command, using the -G option, which creates a	"no history" gag trigger.  For instance:		/trig -G Huh?* = /receive <!> Unrecognized command

⌨️ 快捷键说明

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