📄 examples.html
字号:
<h3>Table of contents</h3> <UL><LI><a href="#chap0">Logging tells</a><LI><a href="#chap1">Easier perl interface</a></UL><PRE>This file contains example aliases, macros and actions. Feel free to sendthe most useful of your in.</PRE><h3><a name="chap0">Logging tells</a></h3><PRE>I use the following few aliases to log tells and other things to a window.First, there is the startlog alias, that starts logging to a file (this hasto of course, be on one line)Alias startLog #window -H -w80 -x0 -y3 -h10 -lmud/Log/%n-%1 %1;#print %1 *** %t -- logged in into %n@%h:%pWhen called (e.g. startLog tells), the file will create a new window,attached to the file mud/Log/ar-tells (if the current MUD youare attached to is called ar). It will also print out a line to that filewhich looks like this:*** Sun Jan 25 12:00:26 1998 -- logged in into ar@abandoned.org:4444Then, I do the logging of, for example, tells, which looks like this:action "^(.*) tells you '(.*)'" #print tells %H:%m $1: $2This will takes lines which contain "tells you" followed by the text insingle quotes.</PRE><h3><a name="chap1">Easier perl interface</a></h3><PRE>Alias % #eval %0will allow you to type things like: %2**20 to find the 20th power of 20,rather than #eval 2**20.Alias ! #eval `%0`will allow you to do e.g. !finger to run the finger command and send itsoutput to the main screen.Note that you don't need space between % nor ! and the command.</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -