help.html 266 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv='content-type' content='text/html; charset=utf-8'>
  5. <meta name='viewport' content='width=device-width, initial-scale=1.0'>
  6. <style type='text/css'>
  7. body {font-family:Consolas;font-size:12pt}
  8. a {text-decoration:none}
  9. a:link {color:#06b}
  10. a:visited {color:#6b0}
  11. a:hover {text-decoration:underline}
  12. a:active {color:#b06}
  13. </style>
  14. <body bgcolor='#000000'>
  15. </head>
  16. <pre>
  17. <span style='background-color:#000'><span style='color:#FFF'>
  18. <a href='#ACTION'> ACTION</a> <a href='#ALIAS'> ALIAS</a> <a href='#ALL'> ALL</a> <a href='#BELL'> BELL</a> <a href='#BREAK'> BREAK</a>
  19. <a href='#BUFFER'> BUFFER</a> <a href='#BUTTON'> BUTTON</a> <a href='#CASE'> CASE</a> <a href='#CAT'> CAT</a> <a href='#CHARACTERS'> CHARACTERS</a>
  20. <a href='#CHAT'> CHAT</a> <a href='#CLASS'> CLASS</a> <a href='#COLORS'> COLORS</a> <a href='#COMMANDS'> COMMANDS</a> <a href='#COORDINATES'> COORDINATES</a>
  21. <a href='#CONFIG'> CONFIG</a> <a href='#CONTINUE'> CONTINUE</a> <a href='#CR'> CR</a> <a href='#CURSOR'> CURSOR</a> <a href='#DAEMON'> DAEMON</a>
  22. <a href='#DEBUG'> DEBUG</a> <a href='#DEFAULT'> DEFAULT</a> <a href='#DELAY'> DELAY</a> <a href='#DRAW'> DRAW</a> <a href='#ECHO'> ECHO</a>
  23. <a href='#EDIT'> EDIT</a> <a href='#EDITING'> EDITING</a> <a href='#ELSE'> ELSE</a> <a href='#ELSEIF'> ELSEIF</a> <a href='#END'> END</a>
  24. <a href='#ESCAPE CODES'> ESCAPE CODES</a> <a href='#EVENT'> EVENT</a> <a href='#FOREACH'> FOREACH</a> <a href='#FORMAT'> FORMAT</a> <a href='#FUNCTION'> FUNCTION</a>
  25. <a href='#GAG'> GAG</a> <a href='#GREETING'> GREETING</a> <a href='#GREP'> GREP</a> <a href='#HELP'> HELP</a> <a href='#HIGHLIGHT'> HIGHLIGHT</a>
  26. <a href='#HISTORY'> HISTORY</a> <a href='#IF'> IF</a> <a href='#IGNORE'> IGNORE</a> <a href='#INDEX'> INDEX</a> <a href='#INFO'> INFO</a>
  27. <a href='#KEYPAD'> KEYPAD</a> <a href='#KILL'> KILL</a> <a href='#LINE'> LINE</a> <a href='#LIST'> LIST</a> <a href='#LISTS'> LISTS</a>
  28. <a href='#LOCAL'> LOCAL</a> <a href='#LOG'> LOG</a> <a href='#LOOP'> LOOP</a> <a href='#MACRO'> MACRO</a> <a href='#MAP'> MAP</a>
  29. <a href='#MAPPING'> MAPPING</a> <a href='#MATH'> MATH</a> <a href='#MATHEMATICS'> MATHEMATICS</a> <a href='#MESSAGE'> MESSAGE</a> <a href='#METRIC SYSTEM'> METRIC SYSTEM</a>
  30. <a href='#MOUSE'> MOUSE</a> <a href='#MSDP'> MSDP</a> <a href='#MSLP'> MSLP</a> <a href='#NOP'> NOP</a> <a href='#PARSE'> PARSE</a>
  31. <a href='#PATH'> PATH</a> <a href='#PATHDIR'> PATHDIR</a> <a href='#PCRE'> PCRE</a> <a href='#PORT'> PORT</a> <a href='#PROMPT'> PROMPT</a>
  32. <a href='#READ'> READ</a> <a href='#REGEXP'> REGEXP</a> <a href='#REPEAT'> REPEAT</a> <a href='#REPLACE'> REPLACE</a> <a href='#RETURN'> RETURN</a>
  33. <a href='#RUN'> RUN</a> <a href='#SCAN'> SCAN</a> <a href='#SCREEN'> SCREEN</a> <a href='#SCREEN READER'> SCREEN READER</a> <a href='#SCRIPT'> SCRIPT</a>
  34. <a href='#SEND'> SEND</a> <a href='#SESSION'> SESSION</a> <a href='#SESSIONNAME'> SESSIONNAME</a> <a href='#SHOWME'> SHOWME</a> <a href='#SNOOP'> SNOOP</a>
  35. <a href='#SPEEDWALK'> SPEEDWALK</a> <a href='#SPLIT'> SPLIT</a> <a href='#SSL'> SSL</a> <a href='#STATEMENTS'> STATEMENTS</a> <a href='#SUBSTITUTE'> SUBSTITUTE</a>
  36. <a href='#SUSPEND'> SUSPEND</a> <a href='#SWITCH'> SWITCH</a> <a href='#SYSTEM'> SYSTEM</a> <a href='#TAB'> TAB</a> <a href='#TEXTIN'> TEXTIN</a>
  37. <a href='#TICKER'> TICKER</a> <a href='#TIME'> TIME</a> <a href='#VARIABLE'> VARIABLE</a> <a href='#WHILE'> WHILE</a> <a href='#WRITE'> WRITE</a>
  38. <a href='#ZAP'> ZAP</a>
  39. <a name='ACTION'></a>
  40. </span><span style='color:#5F5'> ACTION
  41. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #action </span><span style='color:#FFF'>{</span><span style='color:#AAA'>message</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>commands</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>priority</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  42. The #action command can be used to respond with one or several
  43. commands to a specific message send by the server. The %1-%99
  44. variables are substituted from the message and can be used in the
  45. command part of the action.
  46. The priority part is optional and determines the priority of the
  47. action, it defaults to 5.
  48. If the message starts with a ~ color codes must be matched. You can
  49. enable #config {convert meta} on to display meta characters.
  50. For more information on pattern matching see the section on PCRE.
  51. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #action {%1 tells you '%2'} {tell %1 I'm afk.}
  52. Actions can be triggered by the show command and certain system
  53. messages.
  54. Actions can be triggered by the #show command. If you don't want a
  55. #show to get triggered use: #line ignore #show {text}
  56. Actions are ordered alphabetically and only one action can trigger at
  57. a time. To change the order you can assign a priority, which defaults
  58. to 5, with a lower number indicating a higher priority. The priority
  59. can be a floating point number.
  60. To remove action with %* as the message, use #unaction {%%*} or
  61. #unaction {%*}. Alternatively you could wrap the action inside a
  62. class, and kill that class when you no longer need the action.
  63. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: You can remove an action with the #unaction command.
  64. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#PCRE'>pcre</a>, <a href='#GAG'>gag</a>, <a href='#HIGHLIGHT'>highlight</a>, <a href='#PROMPT'>prompt</a> and <a href='#SUBSTITUTE'>substitute</a>.
  65. <a name='ALIAS'></a>
  66. </span><span style='color:#5F5'> ALIAS
  67. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #alias </span><span style='color:#FFF'>{</span><span style='color:#AAA'>name</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>commands</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>priority</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  68. The #alias command can be used to shorten up long or oftenly used
  69. commands. The %1-99 variables are substituted from the arguments when
  70. using an alias and represent the 1st till 99th word which can be used
  71. in the commands part of the alias. If %0 is used it will contain all
  72. arguments. The priority part is optional and determines the priority
  73. of the alias, it defaults to 5.
  74. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #alias {k} {kill %1;kick}
  75. Typing 'k orc' would result in attacking the orc followed by a kick.
  76. You can create multi-word aliases by using variables in the name
  77. section.
  78. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #alias {k %1 with %2} {draw %2;attack %1;slash %1 with %2;
  79. kick at %2;strike %1 with %2}
  80. Using the above alias you could type k blue smurf with battle axe
  81. To have an alias that matches all user input, use %* as the name.
  82. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #alias {%*} {#show You wrote: %0}
  83. Aliases are ordered alphabetically and only one alias can trigger at
  84. a time. To change the order you can assign a priority, which defaults
  85. to 5, with a lower number indicating a higher priority. The priority
  86. can be a floating point number.
  87. To remove an alias with %* as the name, use #unalias {%%*} or #unalias
  88. {%*}. Alternatively you can wrap the alias inside a class, and kill
  89. that class when you no longer need the alias.
  90. For more information on pattern matching see the section on PCRE.
  91. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: You can remove an alias with the #unalias command.
  92. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CURSOR'>cursor</a>, <a href='#HISTORY'>history</a>, <a href='#KEYPAD'>keypad</a>, <a href='#MACRO'>macro</a>, <a href='#SPEEDWALK'>speedwalk</a> and <a href='#TAB'>tab</a>.
  93. <a name='ALL'></a>
  94. </span><span style='color:#5F5'> ALL
  95. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #all </span><span style='color:#FFF'>{</span><span style='color:#AAA'>string</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  96. If you have multiple sessions in one terminal you can use #all to
  97. execute the command with all sessions, excluding the startup session.
  98. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #all quit
  99. Sends 'quit' to all sessions.
  100. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#PORT'>port</a>, <a href='#RUN'>run</a>, <a href='#SESSION'>session</a>, <a href='#SESSIONNAME'>sessionname</a>, <a href='#SNOOP'>snoop</a>, <a href='#SSL'>ssl</a> and <a href='#ZAP'>zap</a>.
  101. <a name='BELL'></a>
  102. </span><span style='color:#5F5'> BELL
  103. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #bell </span><span style='color:#FFF'>{</span><span style='color:#AAA'>flash</span><span style='color:#FFF'>|</span><span style='color:#AAA'>focus</span><span style='color:#FFF'>|</span><span style='color:#AAA'>margin</span><span style='color:#FFF'>|</span><span style='color:#AAA'>ring</span><span style='color:#FFF'>|</span><span style='color:#AAA'>volume</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>argument</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  104. The #bell command without an argument will ring the terminal bell.
  105. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #action {Bubba tells you} {#bell}
  106. If you aren't watching the screen this could be useful if you don't
  107. want to miss out on a conversation with Bubba. Alternatively you can
  108. use #system to play a sound file.
  109. Some terminals will allow you to use VT100 Operating System Commands
  110. to change the terminal's bell behavior which can be used to flash the
  111. taskbar icon and or focus the window on receival of a bell.
  112. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #action {Bubba tells you} {#screen save title;#screen set title Tell!;
  113. #bell ring;#delay 10 #screen load title}
  114. The above example will save your window title, change the title to
  115. 'Tell!', ring the bell, next reset the window title after 10 seconds.
  116. It's possible to set the terminal to pop to the foreground upon
  117. ringing of the alarm bell.
  118. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #bell focus on;#bell ring;#bell focus off
  119. It's possible to adjust the alarm bell volume on some terminals.
  120. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #loop {1} {8} {cnt} {#line substitute variables
  121. #delay {&dollar;cnt} {#show Volume &dollar;cnt: #bell volume &dollar;cnt;#bell}
  122. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#SCREEN'>screen</a>
  123. <a name='BREAK'></a>
  124. </span><span style='color:#5F5'> BREAK
  125. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #break
  126. The break command can be used inside the #foreach, #loop, #parse,
  127. #while and #switch statements. When #break is found, tintin will stop
  128. executing the statement it is currently in and move on to the next.
  129. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #while {1} {#math cnt &dollar;cnt + 1;#if {&dollar;cnt == 20} {#break}}
  130. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#STATEMENTS'>statements</a>
  131. <a name='BUFFER'></a>
  132. </span><span style='color:#5F5'> BUFFER
  133. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #buffer </span><span style='color:#FFF'>{</span><span style='color:#AAA'>home</span><span style='color:#FFF'>|</span><span style='color:#AAA'>up</span><span style='color:#FFF'>|</span><span style='color:#AAA'>down</span><span style='color:#FFF'>|</span><span style='color:#AAA'>end</span><span style='color:#FFF'>|</span><span style='color:#AAA'>lock</span><span style='color:#FFF'>|</span><span style='color:#AAA'>find</span><span style='color:#FFF'>|</span><span style='color:#AAA'>get</span><span style='color:#FFF'>|</span><span style='color:#AAA'>clear</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  134. The buffer command has various options to manipulate your scrollback
  135. buffer.
  136. </span><span style='color:#FFF'>#buffer {home}
  137. </span><span style='color:#AAA'>
  138. Moves you to the top of your scrollback buffer and displays the page.
  139. Enables scroll lock mode. Most useful when used in a #macro.
  140. </span><span style='color:#FFF'>#buffer {up} [lines]
  141. </span><span style='color:#AAA'>
  142. Moves your scrollback buffer up one page and displays the page.
  143. Enables scroll lock mode. Most useful when used in a #macro. You
  144. can use #buffer {up} {1} to move the scrollback buffer up 1 line.
  145. </span><span style='color:#FFF'>#buffer {down} [lines]
  146. </span><span style='color:#AAA'>
  147. Moves your scrollback buffer down one page and displays the page.
  148. Enables scroll lock mode unless at the end. Most useful when used in
  149. a #macro.
  150. </span><span style='color:#FFF'>#buffer {end}
  151. </span><span style='color:#AAA'>
  152. Moves you to the end of your scrollback buffer and displays the page.
  153. Disables scroll lock mode. Most useful when used in a #macro.
  154. </span><span style='color:#FFF'>#buffer {find} {[number]} {&lt;string&gt;}
  155. </span><span style='color:#AAA'>
  156. Moves the buffer to the given string which can contain a regular
  157. expression. Optionally you can provide the number of matches to skip,
  158. allowing you to jump further back in the buffer.
  159. </span><span style='color:#FFF'>#buffer {get} {&lt;variable&gt;} {&lt;lower bound&gt;} {[upper bound]}
  160. </span><span style='color:#AAA'>
  161. Allows you to store one or several lines from your scrollback buffer
  162. (including color codes) into a variable. The lower and upper bound
  163. must be between 1 and the size of the buffer. If the upper bound is
  164. omitted the given line is stored as a standard variable. If an upper
  165. bound is given the lines between the two bounds are stored as a list.
  166. </span><span style='color:#FFF'>#buffer {info} {[save]} {[variable]}
  167. </span><span style='color:#AAA'>
  168. Display buffer info, optionally save the data to a variable.
  169. </span><span style='color:#FFF'>#buffer {lock} {on|off}
  170. </span><span style='color:#AAA'>
  171. Toggles the lock on the scrollback buffer. When locked, newly incoming
  172. text won't be displayed, any command will disable the lock, though
  173. several buffer commands will re-enable the lock. When unlocking it'll
  174. move you to the end of your scrollback buffer and display the page.
  175. </span><span style='color:#FFF'>#buffer {write} {&lt;filename&gt;}
  176. </span><span style='color:#AAA'>
  177. Writes the scrollback buffer to the given file.
  178. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #macro {&bsol;e[F} {#buffer end}
  179. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#ECHO'>echo</a>, <a href='#GREP'>grep</a>, <a href='#MACRO'>macro</a>, <a href='#SHOWME'>showme</a> and <a href='#SCREEN'>screen</a>.
  180. <a name='BUTTON'></a>
  181. </span><span style='color:#5F5'> BUTTON
  182. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #button </span><span style='color:#FFF'>{</span><span style='color:#AAA'>square</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>commands</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>priority</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  183. The #button command can be used to respond with one or several
  184. commands to a mouse click received within the specified square.
  185. The click coordinates are stored in %0-%3 and can be used in the
  186. command part of the button.
  187. The square part should exists of two coordinates defining the
  188. upper left and bottom right corner using row, col, row, col syntax.
  189. The square arguments should be separated by spaces, semi-colons or
  190. braces.
  191. By default the button is set to respond to a mouse button press, to
  192. respond to other button presses you must add a 5th argument to the
  193. square that defines the button press type. You can enable #info
  194. button on to see button events and their type as they happen.
  195. The priority part is optional and determines the priority of the
  196. button, it defaults to 5.
  197. You must enable #config {mouse tracking} on for buttons to work.
  198. This command draws no visible button, you'll have to do so separately
  199. if needed.
  200. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #button {1;1;2;2} {#show You clicked the upper left corner.}
  201. Buttons are ordered alphabetically and only one button can trigger at
  202. a time. To change the order you can assign a priority, which defaults
  203. to 5, with a lower number indicating a higher priority. The priority
  204. can be a floating point number.
  205. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: To see button clicks trigger use #info button on.
  206. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: You can remove a button with the #unbutton command.
  207. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#DELAY'>delay</a>, <a href='#EVENT'>event</a> and <a href='#TICKER'>ticker</a>.
  208. <a name='CASE'></a>
  209. </span><span style='color:#5F5'> CASE
  210. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #case </span><span style='color:#FFF'>{</span><span style='color:#AAA'>conditional</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>arguments</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  211. The case command must be used within the #switch command. When the
  212. conditional argument of the case command matches the conditional
  213. argument of the switch command the body of the case is executed.
  214. When comparing strings both the switch and case arguments must be
  215. surrounded in quotes.
  216. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>:
  217. #function {reverse_direction}
  218. {
  219. #switch {&quot;%1&quot;}
  220. {
  221. #case {&quot;north&quot;} {#return south};
  222. #case {&quot;east&quot;} {#return west};
  223. #case {&quot;south&quot;} {#return north};
  224. #case {&quot;west&quot;} {#return east};
  225. #case {&quot;up&quot;} {#return down};
  226. #case {&quot;down&quot;} {#return up}
  227. }
  228. }
  229. This function returns the reverse direction. @reverse_direction{north}
  230. would return south.
  231. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#DEFAULT'>default</a>, <a href='#STATEMENTS'>statements</a> and <a href='#SWITCH'>switch</a>.
  232. <a name='CAT'></a>
  233. </span><span style='color:#5F5'> CAT
  234. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #cat </span><span style='color:#FFF'>{</span><span style='color:#AAA'>variable</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>argument</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  235. The cat command will concatinate the argument to the given variable.
  236. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#FORMAT'>format</a>, <a href='#FUNCTION'>function</a>, <a href='#LOCAL'>local</a>, <a href='#MATH'>math</a>, <a href='#REPLACE'>replace</a>, <a href='#SCRIPT'>script</a> and <a href='#VARIABLE'>variable</a>.
  237. <a name='CHARACTERS'></a>
  238. </span><span style='color:#5F5'> CHARACTERS
  239. </span><span style='color:#AAA'>
  240. The following special characters are defined:
  241. # The hashtag is the default character for starting a command and is
  242. subsequently known as the command character or tintin character.
  243. When loading a command file the command character is set to the
  244. first character in the file. The character can also be redefined
  245. using #config.
  246. ; The semi-colon is used as the command separator and can be used to
  247. separate two commands. Multiple commands can be strung together as
  248. well. Trailing semi-colons are ignored when reading a script file
  249. as this is a common error.
  250. { } Curly brackets aka braces are used for separating multi word command
  251. arguments, nesting commands, and nesting variables. Braces cannot
  252. easily be escaped and must always be used in pairs.
  253. &quot; &quot; Quote characters are used for strings in the #math, #if, #switch,
  254. and #case commands. It is however suggested to use a set of braces
  255. { } to define strings instead, particularly when checking strings
  256. that may contain quotes.
  257. ! The exclamation sign is used to repeat commands, see #help history.
  258. The character can be redefined using #config.
  259. &bsol; An input line starting with a backslash is send verbatim if you are
  260. connected to a server. This character can be configured with
  261. #config, and is itself send verbatim when the verbatim config mode
  262. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#IS'>is</a>, <a href='#ENABLED.'>enabled.</a>, <a href='#COLORS'>colors</a>, <a href='#ESCAPE'>escape</a>, <a href='#FUNCTION'>function</a>, <a href='#MATHEMATICS'>mathematics</a>, <a href='#PCRE'>pcre</a> and <a href='#VARIABLE'>variable</a>.
  263. <a name='CHAT'></a>
  264. </span><span style='color:#5F5'> CHAT
  265. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #chat </span><span style='color:#FFF'>{</span><span style='color:#AAA'>option</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>argument</span><span style='color:#FFF'>}
  266. </span><span style='color:#AAA'>
  267. The #chat command is used to create peer to peer connections to other
  268. clients, typically for the purpose of chatting and sending files.
  269. This is a decentralized chat system, meaning you have to exchange ip
  270. addresses and port numbers with other users in order to connect to
  271. them.
  272. </span><span style='color:#FFF'>#chat {init} {port}
  273. </span><span style='color:#AAA'> #chat initialize launches your chat server. The port number is
  274. optional, and by default 4050 is used as your port. After using
  275. this command other people can connect to your chat server using
  276. your ip address and port number, and in turn you can connect to
  277. other people.
  278. </span><span style='color:#FFF'>#chat {name} {name}
  279. </span><span style='color:#AAA'> By default your name is set to TinTin, but most servers will
  280. reject you if there is already someone with the name TinTin
  281. connected, so one of the first things you'd want to do is
  282. change your chat name. Your name can include color codes. Some
  283. names aren't accepted by tt++ chat servers, like the name 'all'
  284. and names longer than 20 characters.
  285. </span><span style='color:#FFF'>#chat {message} {buddy|all} {text}
  286. </span><span style='color:#AAA'> This is the main command used for communication. If you use
  287. #chat message all, the message is marked as public and send to
  288. everyone you are connected to.
  289. </span><span style='color:#FFF'>#chat {accept} {buddy} {boost}
  290. </span><span style='color:#AAA'> Accept a file transfer from a buddy. The boost is optional and
  291. must be a value between 1 and 1000.
  292. </span><span style='color:#FFF'>#chat {call} {address} {port}
  293. </span><span style='color:#AAA'> #chat call is used to connect to another chat server. If you
  294. omit the port argument the default port (4050) is used.
  295. </span><span style='color:#FFF'>#chat {cancel} {buddy} Cancel a file transfer
  296. #chat {color} {color names} Set the default color
  297. #chat {decline} {buddy} Decline a file transfer
  298. #chat {dnd} Decline new connections
  299. #chat {download} {directory} Set your download directory
  300. #chat {emote} {buddy|all} {text} Send an emote message
  301. #chat {forward} {buddy} Forward all chat messages
  302. #chat {forwardall} {buddy} Forward all session output
  303. #chat {filestat} {buddy} Show file transfer data
  304. #chat {group} {buddy} {name} Assign a chat group
  305. #chat {ignore} {buddy} Ignores someone
  306. #chat {info} Displays your info
  307. #chat {ip} {address} Changes your IP address
  308. #chat {paste} {buddy|all} {text} Pastes a block of text
  309. #chat {peek} {buddy} Show one's public connections
  310. #chat {ping} {buddy} Display response time
  311. #chat {private} {buddy|all} Make a connection private
  312. #chat {public} {buddy|all} Make a connection public
  313. #chat {reply} {text} Reply to last private message
  314. #chat {request} {buddy} Request one's public connections
  315. #chat {send} {buddy|all} {text} Sends a raw data string
  316. #chat {sendfile} {buddy} {filename} Start a file transfer
  317. #chat {serve} {buddy} Forward all public chat messages
  318. #chat {uninitialize} Uninitialize the chat port.
  319. #chat {who} Show all connections
  320. </span><span style='color:#AAA'> #chat who shows all people you are connected to. The first
  321. column shows a reference number for the connection, which can be
  322. used instead of the connection's name when sending someone a message
  323. The second column shows the connection's name. The third column
  324. shows flags set for the connection, (P)rivate, (I)gnore, (S)erve,
  325. (F)orward to user, and (f)orward from user. The next columns show
  326. ip, port, and client name.
  327. </span><span style='color:#FFF'>#chat {zap} {buddy} Close a connection
  328. Related</span><span style='color:#AAA'>: <a href='#PORT'>port</a>
  329. <a name='CLASS'></a>
  330. </span><span style='color:#5F5'> CLASS
  331. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #class </span><span style='color:#FFF'>{</span><span style='color:#AAA'>name</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>optionkill</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>arg</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  332. </span><span style='color:#FFF'>#class {&lt;name&gt;} {assign} {&lt;argument&gt;}
  333. </span><span style='color:#AAA'> Will execute argument with the given class opened.
  334. </span><span style='color:#FFF'>#class {&lt;name&gt;} {clear}
  335. </span><span style='color:#AAA'> Will delete all triggers associated with the given class.
  336. </span><span style='color:#FFF'>#class {&lt;name&gt;} {close}
  337. </span><span style='color:#AAA'> Close the given class, opening the last open class, if any.
  338. </span><span style='color:#FFF'>#class {&lt;name&gt;} {kill}
  339. </span><span style='color:#AAA'> Will clear, close, and remove the class.
  340. </span><span style='color:#FFF'>#class {&lt;name&gt;} {list}
  341. </span><span style='color:#AAA'> List all triggers associated with the given class.
  342. </span><span style='color:#FFF'>#class {&lt;name&gt;} {load}
  343. </span><span style='color:#AAA'> Will load the saved copy of the class from memory.
  344. </span><span style='color:#FFF'>#class {&lt;name&gt;} {open}
  345. </span><span style='color:#AAA'> Open a class, closing a previously opened class. All triggers
  346. added afterwards are assigned to this class.
  347. </span><span style='color:#FFF'>#class {&lt;name&gt;} {read} {&lt;filename&gt;
  348. </span><span style='color:#AAA'> Will open the class, read the file, and close afterwards.
  349. </span><span style='color:#FFF'>#class {&lt;name&gt;} {save}
  350. </span><span style='color:#AAA'> Will save all triggers of the given class to memory.
  351. </span><span style='color:#FFF'>#class {&lt;name&gt;} {size} {&lt;variable&gt;}
  352. </span><span style='color:#AAA'> Will store the size of the class in a variable.
  353. </span><span style='color:#FFF'>#class {&lt;name&gt;} {write} {&lt;filename&gt;}
  354. </span><span style='color:#AAA'> Will write all triggers of the given class to file.
  355. The {kill} option will delete all triggers of the given class.
  356. Keep in mind that the kill and read option are very fast allowing
  357. them to be used to enable and disable classes.
  358. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #class extra kill;#class extra read extra.tin
  359. Deletes all triggers of 'extra' class if any. Read 'extra.tin' file,
  360. all triggers loaded will be assigned to the fresh new 'extra' class.
  361. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CONFIG'>config</a>, <a href='#DEBUG'>debug</a>, <a href='#IGNORE'>ignore</a>, <a href='#INFO'>info</a>, <a href='#KILL'>kill</a>, <a href='#LINE'>line</a> and <a href='#MESSAGE'>message</a>.
  362. <a name='COLORS'></a>
  363. </span><span style='color:#5F5'> COLORS
  364. </span><span style='color:#FFF'>Syntax</span><span style='color:#AAA'>: &lt;xyz&gt; with x, y, z being parameters
  365. Parameter 'x': VT100 code
  366. 0 - Reset all colors and codes to default
  367. 1 - Bold
  368. 2 - Dim
  369. 3 - Italic
  370. 4 - Underscore
  371. 5 - Blink
  372. 7 - Reverse
  373. 8 - Skip (use previous code)
  374. Parameter 'y': Foreground color
  375. Parameter 'z': Background color
  376. 0 - Black 5 - Magenta
  377. 1 - Red 6 - Cyan
  378. 2 - Green 7 - White
  379. 3 - Yellow 8 - Skip
  380. 4 - Blue 9 - Default
  381. For xterm 256 colors support use &lt;aaa&gt; to &lt;fff&gt; for RGB foreground
  382. colors and &lt;AAA&gt; to &lt;FFF&gt; for RGB background colors. For the grayscale
  383. foreground colors use &lt;g00&gt; to &lt;g23&gt;, for grayscale background colors
  384. use &lt;G00&gt; to &lt;G23&gt;.
  385. The tertiary colors are as follows:
  386. &lt;acf&gt; - Azure &lt;afc&gt; - Jade
  387. &lt;caf&gt; - Violet &lt;cfa&gt; - Lime
  388. &lt;fac&gt; - Pink &lt;fca&gt; - Orange
  389. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #show &lt;acf&gt;Azure &lt;afc&gt;Jade &lt;caf&gt;Violet
  390. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #show &lt;cfa&gt;Lime &lt;fac&gt;Pink &lt;fca&gt;Orange
  391. For 12 bit truecolor use &lt;F000&gt; to &lt;FFFF&gt; for foreground colors and
  392. &lt;B000&gt; to &lt;BFFF&gt; for background colors.
  393. For 24 bit truecolor use &lt;F000000&gt; to &lt;FFFFFFF&gt; for foreground
  394. colors and &lt;B000000&gt; to &lt;BFFFFFF&gt; for background colors.
  395. If the color code exceeds your configured color mode it will be
  396. downgraded to the closest match.
  397. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CHARACTERS'>characters</a>, <a href='#COORDINATES'>coordinates</a>, <a href='#ESCAPE'>escape</a>, <a href='#MATHEMATICS'>mathematics</a> and <a href='#PCRE'>pcre</a>.
  398. <a name='COMMANDS'></a>
  399. </span><span style='color:#5F5'> COMMANDS
  400. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #commands </span><span style='color:#FFF'>{</span><span style='color:#AAA'>regex</span><span style='color:#FFF'>}
  401. </span><span style='color:#AAA'>
  402. Shows all commands or all commands matching the given search
  403. string.
  404. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#HELP'>help</a>, <a href='#INFO'>info</a> and <a href='#STATEMENTS'>statements</a>.
  405. <a name='COORDINATES'></a>
  406. </span><span style='color:#5F5'> COORDINATES
  407. </span><span style='color:#AAA'>
  408. When the 0,0 coordinate is in the upper left corner TinTin++ uses
  409. a y,x / rows,cols notation. When the 0,0 coordinate is in the
  410. bottom left corner tintin uses a x,y / cols/rows notation.
  411. When a square is defined this is done by specifying the upper left
  412. and bottom right corner of the square using four coordinates.
  413. The vast majority of tintin commands use row,col notation.
  414. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CHARACTERS'>characters</a>, <a href='#COLORS'>colors</a>, <a href='#ESCAPE'>escape</a>, <a href='#MATHEMATICS'>mathematics</a> and <a href='#PCRE'>pcre</a>.
  415. <a name='CONFIG'></a>
  416. </span><span style='color:#5F5'> CONFIG
  417. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #config </span><span style='color:#FFF'>{</span><span style='color:#AAA'>option</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>argument</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  418. This allows you to configure various settings, the settings can be
  419. written to file with the #write command.
  420. If you configure the global session (the one you see as you start up
  421. tintin) all sessions started will inherite these settings.
  422. It's advised to make a configuration file to read on startup if you
  423. do not like the default settings.
  424. Use #config without an argument to see your current configuration as
  425. well as a brief explanation of each config option.
  426. The following config options are not listed by default:
  427. #CONFIG {CHILD LOCK} {ON|OFF} Enable or disable command input.
  428. #CONFIG {CONVERT META} {ON|OFF} Shows color codes and key bindings.
  429. #CONFIG {DEBUG TELNET} {ON|OFF} Shows telnet negotiations y/n.
  430. #CONFIG {LOG LEVEL} {LOW|HIGH} LOW logs server output before triggers.
  431. #CONFIG {INHERITANCE} {ON|OFF} Session trigger inheritance y/n.
  432. #CONFIG {MCCP} {ON|OFF} Enable or disable MCCP support.
  433. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CLASS'>class</a> and <a href='#LINE'>line</a>.
  434. <a name='CONTINUE'></a>
  435. </span><span style='color:#5F5'> CONTINUE
  436. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #continue
  437. The continue command can be used inside the #FOREACH, #LOOP, #PARSE,
  438. #WHILE and #SWITCH commands. When #CONTINUE is found, tintin will go
  439. to the end of the command and proceed as normal, which may be to
  440. reiterate the command.
  441. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #loop 1 10 cnt {#if {&dollar;cnt % 2 == 0} {#continue} {say &dollar;cnt}}
  442. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#BREAK'>break</a>, <a href='#FOREACH'>foreach</a>, <a href='#LIST'>list</a>, <a href='#LOOP'>loop</a>, <a href='#PARSE'>parse</a>, <a href='#REPEAT'>repeat</a>, <a href='#RETURN'>return</a> and <a href='#WHILE'>while</a>.
  443. <a name='CR'></a>
  444. </span><span style='color:#5F5'> CR
  445. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #cr
  446. Sends a carriage return to the session. Useful for aliases that need
  447. extra carriage returns.
  448. This command is obsolete as you can accomplish the same using #send
  449. without an argument or #send {}.
  450. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#FORALL'>forall</a>
  451. <a name='CURSOR'></a>
  452. </span><span style='color:#5F5'> CURSOR
  453. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #cursor </span><span style='color:#FFF'>{</span><span style='color:#AAA'>option</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>argument</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  454. Typing #cursor without an option will show all available cursor
  455. options, their default binding, and an explanation of their function.
  456. The cursor command's primarly goal is adding customizable input editing
  457. with macros. Subsequently many cursor commands only work properly when
  458. used within a macro or event.
  459. </span><span style='color:#FFF'>#cursor tab &lt;list;scrollback&gt; &lt;backward|forward&gt;
  460. </span><span style='color:#AAA'> Tab through the given option(s) going forward or backward.
  461. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#ALIAS'>alias</a>, <a href='#HISTORY'>history</a>, <a href='#KEYPAD'>keypad</a>, <a href='#MACRO'>macro</a>, <a href='#SPEEDWALK'>speedwalk</a> and <a href='#TAB'>tab</a>.
  462. <a name='DAEMON'></a>
  463. </span><span style='color:#5F5'> DAEMON
  464. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #daemon </span><span style='color:#FFF'>{</span><span style='color:#AAA'>attach</span><span style='color:#FFF'>|</span><span style='color:#AAA'>detach</span><span style='color:#FFF'>|</span><span style='color:#AAA'>kill</span><span style='color:#FFF'>|</span><span style='color:#AAA'>list</span><span style='color:#FFF'>} [</span><span style='color:#AAA'>name</span><span style='color:#FFF'>]
  465. </span><span style='color:#AAA'>#daemon provides functionality similar to that of the screen and tmux
  466. utilities.
  467. </span><span style='color:#FFF'>#daemon attach [name]
  468. </span><span style='color:#AAA'> The attach option will try to find a daemonized tintin instance and
  469. take over control. The name argument is optional.
  470. </span><span style='color:#FFF'>#daemon detach [name]
  471. </span><span style='color:#AAA'> The detach option will daemonize tintin, turning it into a background
  472. process. The name argument is optional and is useful if you have
  473. several daemonized tt++ instances running so you can keep them apart.
  474. </span><span style='color:#FFF'>#daemon kill [name]
  475. </span><span style='color:#AAA'> Kills all daemons or daemons with matching name.
  476. </span><span style='color:#FFF'>#daemon list [name]
  477. </span><span style='color:#AAA'> List all daemons or daemons with matching name.
  478. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#SCRIPT'>script</a>, <a href='#SYSTEM'>system</a> and <a href='#RUN'>run</a>.
  479. <a name='DEBUG'></a>
  480. </span><span style='color:#5F5'> DEBUG
  481. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #debug </span><span style='color:#FFF'>{</span><span style='color:#AAA'>listname</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>on</span><span style='color:#FFF'>|</span><span style='color:#AAA'>off</span><span style='color:#FFF'>|</span><span style='color:#AAA'>log</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  482. Toggles a list on or off. With no argument it shows your current
  483. settings, as well as the list names that you can debug.
  484. If you for example set ACTIONS to ON you will get debug information
  485. whenever an action is triggered.
  486. #debug {listname} {log} will silently write debugging information to
  487. the log file, you must be logging in order for this to work.
  488. Not every list has debug support yet.
  489. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CLASS'>class</a>, <a href='#IGNORE'>ignore</a>, <a href='#INFO'>info</a>, <a href='#KILL'>kill</a> and <a href='#MESSAGE'>message</a>.
  490. <a name='DEFAULT'></a>
  491. </span><span style='color:#5F5'> DEFAULT
  492. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #default </span><span style='color:#FFF'>{</span><span style='color:#AAA'>commands</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  493. The default command can only be used within the switch command. When
  494. the conditional argument of non of the case commands matches the switch
  495. command's conditional statement the default command is executed.
  496. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CASE'>case</a>, <a href='#DEFAULT'>default</a>, <a href='#ELSE'>else</a>, <a href='#ELSEIF'>elseif</a>, <a href='#IF'>if</a>, <a href='#SWITCH'>switch</a> and <a href='#REGEXP'>regexp</a>.
  497. <a name='DELAY'></a>
  498. </span><span style='color:#5F5'> DELAY
  499. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #delay </span><span style='color:#FFF'>{</span><span style='color:#AAA'>seconds</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>command</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  500. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #delay </span><span style='color:#FFF'>{</span><span style='color:#AAA'>name</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>command</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>seconds</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  501. Delay allows you to have tintin wait the given amount of seconds
  502. before executing the given command. tintin won't wait before
  503. executing following input commands if any.
  504. Floating point precision for milliseconds is possible.
  505. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #show first;#delay {1} {#show last}
  506. This will print 'first', and 'last' around one second later.
  507. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: If you want to remove a delay with the #undelay command you can add
  508. a name as the first argument, be aware this changes the syntax. If
  509. the name is a number keep in mind that delays with the same numeric
  510. name will not be overwritten
  511. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#EVENT'>event</a> and <a href='#TICKER'>ticker</a>.
  512. <a name='DRAW'></a>
  513. </span><span style='color:#5F5'> DRAW
  514. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #draw </span><span style='color:#FFF'>[</span><span style='color:#AAA'>color</span><span style='color:#FFF'>] [</span><span style='color:#AAA'>options</span><span style='color:#FFF'>] &lt;</span><span style='color:#AAA'>type</span><span style='color:#FFF'>&gt; &lt;</span><span style='color:#AAA'>square</span><span style='color:#FFF'>&gt; {</span><span style='color:#AAA'>text</span><span style='color:#FFF'>}
  515. </span><span style='color:#AAA'>
  516. The draw commands allows you to draw various types of lines and shapes
  517. on the screen. Common options and types with a brief description are
  518. provided when you type #draw without an argument.
  519. The square arguments should exists of two coordinates defining the
  520. upper left and bottom right corner using row, col, row, col syntax.
  521. The square arguments can be negative, in which case the coordinates
  522. are calculated from the opposite side of the screen. In the case the
  523. screen is 80 columns wide using #draw box 1 60 10 70 will be the
  524. equivalent of #draw box 1 -21 10 -11, but with different screen
  525. widths the boxes would be drawn in different places.
  526. You can prefix the option with a color code or color name to color the
  527. lines and shapes.
  528. You can further prefix the option as following:
  529. ASCII will draw in ASCII mode.
  530. BLANKED will blank the lines and corners.
  531. BOTTOM will draw on the bottom side if possible.
  532. BOXED will draw a box along the square.
  533. BUMPED will precede the draw with an enter.
  534. CALIGN will center text.
  535. CIRCLED will circle the corners.
  536. CONVERT will draw text with meta conversion.
  537. CROSSED will cross the corners.
  538. CURSIVE will draw text with cursive letters.
  539. FAT will draw text with fat letters.
  540. FILLED will fill circles and jewels.
  541. FOREGROUND will draw even if session is not active.
  542. GRID will draw TABLE as a grid.
  543. HORIZONTAL will draw horizontal if possible.
  544. HUGE will draw text in huge letters.
  545. JEWELED will diamond the corners.
  546. JOINTED will draw corners.
  547. LALIGN will left align text.
  548. LEFT will draw on the left side if possible.
  549. NUMBERED will draw numbers instead of lines.
  550. PRUNED will prune the corners.
  551. RALIGN will right align text.
  552. RIGHT will draw on the right side if possible.
  553. ROUNDED will round the corners.
  554. SANSSERIF will draw text with sansserif letters.
  555. SCALED will fit the square to the text size.
  556. SCROLL will draw in the scrolling region.
  557. SHADOWED will shadow HUGE text.
  558. TALIGN will top align text too large to fit.
  559. TEED will tee the corners.
  560. TOP will draw on the top side if possible.
  561. TRACED will trace HUGE text.
  562. TUBED will draw tubes instead of lines.
  563. UALIGN will unwrap and rewrap text.
  564. UNICODE will draw in unicode mode.
  565. VERTICAL will draw vertical if possible.
  566. The following types are available.
  567. </span><span style='color:#FFF'>[ASCII|UNICODE|HUGE] BOX {[TEXT1]} {[TEXT2]}
  568. </span><span style='color:#AAA'> will draw a box.
  569. </span><span style='color:#FFF'>[BOXED|FOREGROUND] BUFFER
  570. </span><span style='color:#AAA'> will draw the scrollback buffer.
  571. </span><span style='color:#FFF'>[BLANKED|CIRCLED|CROSSED|JEWELED|ROUNDED|TEED|PRUNED] CORNER
  572. </span><span style='color:#AAA'> will draw a corner.
  573. </span><span style='color:#FFF'>[BLANKED|HORIZONTAL|NUMBERED|TUBED|VERTICAL] LINE {[TEXT]}
  574. </span><span style='color:#AAA'> will draw a line.
  575. </span><span style='color:#FFF'>[BOXED] MAP
  576. </span><span style='color:#AAA'> will draw the map
  577. </span><span style='color:#FFF'>RAIN {&lt;VARIABLE&gt;} {[SPAWN]} {[FADE]} {[LEGEND]}
  578. </span><span style='color:#AAA'> will draw digital rain.
  579. </span><span style='color:#FFF'>[JOINTED|TOP|LEFT|BOTTOM|RIGHT] SIDE
  580. </span><span style='color:#AAA'> will draw one or more sides of a box.
  581. </span><span style='color:#FFF'>[GRID] TABLE {[LIST1]} {[LIST2]}
  582. </span><span style='color:#AAA'> will draw a table.
  583. </span><span style='color:#FFF'>[HUGE] TILE {[TEXT1]} {[TEXT2]}
  584. </span><span style='color:#AAA'> will draw a tile
  585. All draw types take an optional text argument as long as a valid
  586. square with enough space has been defined. Text is automatically
  587. word wrapped and text formatting can be customized with the
  588. CALIGN, LALIGN, RALIGN, and UALIGN options.
  589. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #draw Blue box 1 1 3 20 {Hello world!}
  590. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#BUFFER'>buffer</a>, <a href='#ECHO'>echo</a>, <a href='#GREP'>grep</a> and <a href='#SHOWME'>showme</a>.
  591. <a name='ECHO'></a>
  592. </span><span style='color:#5F5'> ECHO
  593. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #echo </span><span style='color:#FFF'>{</span><span style='color:#AAA'>format</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>argument1</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>argument2</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>etc</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  594. Echo command displays text on the screen with formatting options. See
  595. the help file for the format command for more information.
  596. The echo command does not trigger actions.
  597. As with the #show command you can split the {format} argument up into
  598. two braced arguments, in which case the 2nd argument is the row number.
  599. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #echo {The current date is %t.} {%Y-%m-%d %H:%M:%S}
  600. #echo {[%38s][%-38s]} {Hello World} {Hello World}
  601. #echo {{this is %s on the top row} {-1}} {printed}
  602. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#BUFFER'>buffer</a>, <a href='#FORMAT'>format</a>, <a href='#GREP'>grep</a> and <a href='#SHOWME'>showme</a>.
  603. <a name='EDIT'></a>
  604. </span><span style='color:#5F5'> EDIT
  605. #edit </span><span style='color:#FFF'>{</span><span style='color:#AAA'>option</span><span style='color:#FFF'>} [</span><span style='color:#AAA'>argument</span><span style='color:#FFF'>]</span><span style='color:#AAA'>
  606. The edit command can be used to turn the default line editor into a
  607. text editor.
  608. </span><span style='color:#FFF'>#edit create &lt;arguments&gt;</span><span style='color:#AAA'>
  609. Create an editor, initialize using the provided arguments.
  610. </span><span style='color:#FFF'>#edit load &lt;variable&gt;</span><span style='color:#AAA'>
  611. Create an editor, initialize using the provided list variable.
  612. </span><span style='color:#FFF'>#edit read &lt;filename&gt;</span><span style='color:#AAA'>
  613. Create an editor, initialize using the provided file.
  614. </span><span style='color:#FFF'>#edit resume</span><span style='color:#AAA'>
  615. Resume editing after a suspension.
  616. </span><span style='color:#FFF'>#edit save &lt;variable&gt;</span><span style='color:#AAA'>
  617. Save the editor to the provided variable.
  618. </span><span style='color:#FFF'>#edit suspend</span><span style='color:#AAA'>
  619. Suspend editing, similar to pressing enter except that no
  620. events are triggered.
  621. </span><span style='color:#FFF'>#edit write &lt;filename</span><span style='color:#AAA'>
  622. Write the editor content to file.
  623. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #edit create {bli}{bla}{blo}
  624. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CURSOR'>cursor</a> and <a href='#MACRO'>macro</a>.
  625. <a name='EDITING'></a>
  626. </span><span style='color:#5F5'> EDITING
  627. </span><span style='color:#AAA'>
  628. </span><span style='color:#0AA'>┌─────────────────────────┐┌────────────────────────────────────────────┐</span><span style='color:#AAA'>
  629. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>alt b </span><span style='color:#0AA'>││</span><span style='color:#FFF'>cursor backward word </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  630. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  631. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>alt f </span><span style='color:#0AA'>││</span><span style='color:#FFF'>cursor forward word </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  632. </span><span style='color:#0AA'>└─────────────────────────┘└────────────────────────────────────────────┘</span><span style='color:#AAA'>
  633. </span><span style='color:#0AA'>┌─────────────────────────┐┌────────────────────────────────────────────┐</span><span style='color:#AAA'>
  634. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl a </span><span style='color:#0AA'>││</span><span style='color:#FFF'>cursor home </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  635. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  636. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl b </span><span style='color:#0AA'>││</span><span style='color:#FFF'>cursor backward </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  637. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  638. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl c </span><span style='color:#0AA'>││</span><span style='color:#FFF'>clear line </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  639. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  640. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl d </span><span style='color:#0AA'>││</span><span style='color:#FFF'>delete or exit </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  641. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  642. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl e </span><span style='color:#0AA'>││</span><span style='color:#FFF'>cursor end </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  643. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  644. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl f </span><span style='color:#0AA'>││</span><span style='color:#FFF'>cursor forward </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  645. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  646. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl g </span><span style='color:#0AA'>││</span><span style='color:#FFF'> </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  647. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  648. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl h </span><span style='color:#0AA'>││</span><span style='color:#FFF'>backspace </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  649. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  650. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl i </span><span style='color:#0AA'>││</span><span style='color:#FFF'>tab </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  651. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  652. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl j </span><span style='color:#0AA'>││</span><span style='color:#FFF'>enter </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  653. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  654. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl k </span><span style='color:#0AA'>││</span><span style='color:#FFF'>clear line right </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  655. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  656. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl l </span><span style='color:#0AA'>││</span><span style='color:#FFF'>redraw input </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  657. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  658. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl m </span><span style='color:#0AA'>││</span><span style='color:#FFF'>enter </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  659. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  660. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl n </span><span style='color:#0AA'>││</span><span style='color:#FFF'>input history next </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  661. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  662. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl o </span><span style='color:#0AA'>││</span><span style='color:#FFF'> </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  663. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  664. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl p </span><span style='color:#0AA'>││</span><span style='color:#FFF'>input history prev </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  665. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  666. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl q </span><span style='color:#0AA'>││</span><span style='color:#FFF'> </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  667. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  668. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl r </span><span style='color:#0AA'>││</span><span style='color:#FFF'>input history search </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  669. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  670. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl s </span><span style='color:#0AA'>││</span><span style='color:#FFF'> </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  671. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  672. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl t </span><span style='color:#0AA'>││</span><span style='color:#FFF'>scroll buffer lock </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  673. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  674. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl u </span><span style='color:#0AA'>││</span><span style='color:#FFF'>clear line left </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  675. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  676. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl v </span><span style='color:#0AA'>││</span><span style='color:#FFF'>convert meta characters </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  677. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  678. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl w </span><span style='color:#0AA'>││</span><span style='color:#FFF'>delete word left </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  679. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  680. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl x </span><span style='color:#0AA'>││</span><span style='color:#FFF'> </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  681. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  682. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl y </span><span style='color:#0AA'>││</span><span style='color:#FFF'>paste </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  683. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  684. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl z </span><span style='color:#0AA'>││</span><span style='color:#FFF'>suspend </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  685. </span><span style='color:#0AA'>└─────────────────────────┘└────────────────────────────────────────────┘</span><span style='color:#AAA'>
  686. </span><span style='color:#0AA'>┌─────────────────────────┐┌────────────────────────────────────────────┐</span><span style='color:#AAA'>
  687. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>arrow left </span><span style='color:#0AA'>││</span><span style='color:#FFF'>cursor left </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  688. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  689. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>arrow right </span><span style='color:#0AA'>││</span><span style='color:#FFF'>cursor right </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  690. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  691. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>arrow up </span><span style='color:#0AA'>││</span><span style='color:#FFF'>previous input line </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  692. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  693. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>arrow down </span><span style='color:#0AA'>││</span><span style='color:#FFF'>next input line </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  694. </span><span style='color:#0AA'>└─────────────────────────┘└────────────────────────────────────────────┘</span><span style='color:#AAA'>
  695. </span><span style='color:#0AA'>┌─────────────────────────┐┌────────────────────────────────────────────┐</span><span style='color:#AAA'>
  696. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl arrow left </span><span style='color:#0AA'>││</span><span style='color:#FFF'>cursor left word </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  697. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  698. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl arrow right </span><span style='color:#0AA'>││</span><span style='color:#FFF'>cursor right word </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  699. </span><span style='color:#0AA'>└─────────────────────────┘└────────────────────────────────────────────┘</span><span style='color:#AAA'>
  700. </span><span style='color:#0AA'>┌─────────────────────────┐┌────────────────────────────────────────────┐</span><span style='color:#AAA'>
  701. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>backspace </span><span style='color:#0AA'>││</span><span style='color:#FFF'>backspace </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  702. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  703. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>alt backspace </span><span style='color:#0AA'>││</span><span style='color:#FFF'>clear line left </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  704. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  705. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl backspace </span><span style='color:#0AA'>││</span><span style='color:#FFF'>clear line </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  706. </span><span style='color:#0AA'>└─────────────────────────┘└────────────────────────────────────────────┘</span><span style='color:#AAA'>
  707. </span><span style='color:#0AA'>┌─────────────────────────┐┌────────────────────────────────────────────┐</span><span style='color:#AAA'>
  708. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>delete </span><span style='color:#0AA'>││</span><span style='color:#FFF'>delete </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  709. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  710. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl delete </span><span style='color:#0AA'>││</span><span style='color:#FFF'>delete word right </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  711. </span><span style='color:#0AA'>└─────────────────────────┘└────────────────────────────────────────────┘</span><span style='color:#AAA'>
  712. </span><span style='color:#0AA'>┌─────────────────────────┐┌────────────────────────────────────────────┐</span><span style='color:#AAA'>
  713. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>end </span><span style='color:#0AA'>││</span><span style='color:#FFF'>cursor end </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  714. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  715. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl end </span><span style='color:#0AA'>││</span><span style='color:#FFF'>scroll buffer end </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  716. </span><span style='color:#0AA'>└─────────────────────────┘└────────────────────────────────────────────┘</span><span style='color:#AAA'>
  717. </span><span style='color:#0AA'>┌─────────────────────────┐┌────────────────────────────────────────────┐</span><span style='color:#AAA'>
  718. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>enter </span><span style='color:#0AA'>││</span><span style='color:#FFF'>enter </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  719. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  720. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>shift-enter </span><span style='color:#0AA'>││</span><span style='color:#FFF'>soft enter </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  721. </span><span style='color:#0AA'>└─────────────────────────┘└────────────────────────────────────────────┘</span><span style='color:#AAA'>
  722. </span><span style='color:#0AA'>┌─────────────────────────┐┌────────────────────────────────────────────┐</span><span style='color:#AAA'>
  723. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>home </span><span style='color:#0AA'>││</span><span style='color:#FFF'>cursor home </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  724. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  725. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>ctrl home </span><span style='color:#0AA'>││</span><span style='color:#FFF'>scroll buffer home </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  726. </span><span style='color:#0AA'>└─────────────────────────┘└────────────────────────────────────────────┘</span><span style='color:#AAA'>
  727. </span><span style='color:#0AA'>┌─────────────────────────┐┌────────────────────────────────────────────┐</span><span style='color:#AAA'>
  728. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>page up </span><span style='color:#0AA'>││</span><span style='color:#FFF'>scroll buffer up </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  729. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  730. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>page down </span><span style='color:#0AA'>││</span><span style='color:#FFF'>scroll buffer down </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  731. </span><span style='color:#0AA'>└─────────────────────────┘└────────────────────────────────────────────┘</span><span style='color:#AAA'>
  732. </span><span style='color:#0AA'>┌─────────────────────────┐┌────────────────────────────────────────────┐</span><span style='color:#AAA'>
  733. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>tab </span><span style='color:#0AA'>││</span><span style='color:#FFF'>complete word forward </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  734. </span><span style='color:#0AA'>├─────────────────────────┤├────────────────────────────────────────────┤</span><span style='color:#AAA'>
  735. </span><span style='color:#0AA'>│</span><span style='color:#FFF'>shift-tab </span><span style='color:#0AA'>││</span><span style='color:#FFF'>complete word backward </span><span style='color:#0AA'>│</span><span style='color:#AAA'>
  736. </span><span style='color:#0AA'>└─────────────────────────┘└────────────────────────────────────────────┘</span><span style='color:#AAA'>
  737. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CURSOR'>cursor</a>, <a href='#EDIT'>edit</a> and <a href='#MACRO'>macro</a>.
  738. <a name='ELSE'></a>
  739. </span><span style='color:#5F5'> ELSE
  740. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #else </span><span style='color:#FFF'>{</span><span style='color:#AAA'>commands</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  741. The else statement should follow an #IF or #ELSEIF statement and is
  742. only called if the proceeding #IF or #ELSEIF is false.
  743. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #if {1d2 == 1} {smile};#else {grin}
  744. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CASE'>case</a>, <a href='#DEFAULT'>default</a>, <a href='#ELSEIF'>elseif</a>, <a href='#IF'>if</a>, <a href='#SWITCH'>switch</a> and <a href='#REGEXP'>regexp</a>.
  745. <a name='ELSEIF'></a>
  746. </span><span style='color:#5F5'> ELSEIF
  747. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #elseif </span><span style='color:#FFF'>{</span><span style='color:#AAA'>conditional</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>commands</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  748. The elseif statement should follow an #IF or #ELSEIF statement and is
  749. only called when the statement is true and the proceeding #IF and
  750. #ELSEIF statements are false.
  751. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #if {1d3 == 1} {smirk};#elseif {1d2 == 1} {snicker}
  752. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CASE'>case</a>, <a href='#DEFAULT'>default</a>, <a href='#ELSE'>else</a>, <a href='#IF'>if</a>, <a href='#SWITCH'>switch</a> and <a href='#REGEXP'>regexp</a>.
  753. <a name='END'></a>
  754. </span><span style='color:#5F5'> END
  755. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #end {&lt;message&gt;}
  756. Terminates tintin and return to unix. On most systems, ctrl-c has
  757. the same result.
  758. The message is optional and is printed before tintin exits. When
  759. using #end {&bsol;} tintin will terminate silently.
  760. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#ZAP'>zap</a>
  761. <a name='ESCAPE CODES'></a>
  762. </span><span style='color:#5F5'> ESCAPE CODES
  763. </span><span style='color:#AAA'> You may use the escape character &bsol; for various special characters.
  764. &bsol;a beep the terminal.
  765. &bsol;c send a control character, &bsol;ca for ctrl-a.
  766. &bsol;e start an escape sequence.
  767. &bsol;f send a form feed.
  768. &bsol;n send a line feed.
  769. &bsol;r send a carriage return.
  770. &bsol;t send a horizontal tab.
  771. &bsol;x print an 8 bit character using hexadecimal, &bsol;xFF for example.
  772. &bsol;x7B send the '{' character.
  773. &bsol;x7D send the '}' character.
  774. &bsol;u print a 16 bit unicode character, &bsol;uFFFD for example.
  775. &bsol;U print a 21 bit unicode character, &bsol;U02AF21 for example.
  776. &bsol;v send a vertical tab
  777. Ending a line with &bsol; will stop tintin from appending a line feed.
  778. To escape arguments in an alias or action use %%0 %%1 %%2 etc.
  779. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CHARACTERS'>characters</a>, <a href='#COLORS'>colors</a>, <a href='#COORDINATES'>coordinates</a>, <a href='#MATHEMATICS'>mathematics</a> and <a href='#PCRE'>pcre</a>.
  780. <a name='EVENT'></a>
  781. </span><span style='color:#5F5'> EVENT
  782. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #event </span><span style='color:#FFF'>{</span><span style='color:#AAA'>event type</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  783. Events allow you to create triggers for predetermined client events.
  784. Use #event without an argument to see a list of possible events with
  785. a brief description. Use #event %* to see the current list of defined
  786. events. Use #info {events} {on} to see events get thrown.
  787. Events, like triggers in general, are case sensitive and event names
  788. must be defined using all upper case letters.
  789. To enable mouse events use #config mouse_tracking on, to see mouse
  790. events use #config mouse_tracking info.
  791. </span><span style='color:#5F5'>CATCH EVENTS
  792. </span><span style='color:#FFF'>CATCH &lt;EVENT&gt;
  793. </span><span style='color:#AAA'> Some events can be prefixed with CATCH to interrupt default
  794. behavior.
  795. </span><span style='color:#5F5'>CLASS EVENTS
  796. </span><span style='color:#FFF'>CLASS ACTIVATED [CLASS], CLASS_CLEAR [CLASS], CLASS CREATED [CLASS],
  797. CLASS DEACTIVATED [CLASS], CLASS DESTROYED [CLASS],
  798. CLASS_LOAD [CLASS]
  799. </span><span style='color:#AAA'> %0 class name
  800. </span><span style='color:#5F5'>GAG EVENTS
  801. </span><span style='color:#FFF'>GAG &lt;EVENT&gt;
  802. </span><span style='color:#AAA'> Some events can be prefixed with GAG to gag default system
  803. messages.
  804. </span><span style='color:#5F5'>INPUT EVENTS</span><span style='color:#AAA'>
  805. </span><span style='color:#FFF'>EDIT STARTED, EDIT FINISHED
  806. </span><span style='color:#AAA'> %0 name %1 lines %2 size %3 data
  807. </span><span style='color:#FFF'>RECEIVED KEYPRESS, PROCESSED KEYPRESS
  808. </span><span style='color:#AAA'> %0 character %1 unicode index %2 edit row %3 edit column
  809. </span><span style='color:#FFF'>RECEIVED INPUT [NAME]
  810. </span><span style='color:#AAA'> %0 raw text
  811. SEND OUTPUT %0 raw text %1 size
  812. SENT OUTPUT %0 raw text %1 size
  813. </span><span style='color:#5F5'>MAP EVENTS
  814. </span><span style='color:#FFF'>END OF PATH, END OF RUN, MAP UPDATED VTMAP
  815. </span><span style='color:#AAA'> These events have no additional arguments.
  816. </span><span style='color:#FFF'>MAP CREATE EXIT, MAP DELETE EXIT
  817. </span><span style='color:#AAA'> %0 vnum %1 exit name %2 exit cmd %3 exit vnum
  818. </span><span style='color:#FFF'>MAP CREATE ROOM, MAP DELETE ROOM
  819. </span><span style='color:#AAA'> %0 vnum %1 name
  820. </span><span style='color:#FFF'>MAP ENTER MAP, MAP EXIT MAP
  821. </span><span style='color:#AAA'> %0 vnum
  822. </span><span style='color:#FFF'>MAP ENTER ROOM [VNUM]
  823. </span><span style='color:#AAA'> %0 new vnum %1 old vnum %2 direction
  824. </span><span style='color:#FFF'>MAP EXIT ROOM [VNUM]
  825. </span><span style='color:#AAA'> %0 old vnum %1 new vnum %2 direction
  826. </span><span style='color:#FFF'>MAP FOLLOW MAP
  827. </span><span style='color:#AAA'> %0 old vnum %1 new vnum %2 exit name
  828. </span><span style='color:#FFF'>MAP REGION &lt;MOUSE&gt;, MAP ROOM &lt;MOUSE&gt;
  829. </span><span style='color:#AAA'> %0 row %1 col %2 -row %3 -col %5 vnum %6 info
  830. </span><span style='color:#5F5'>MOUSE EVENTS</span><span style='color:#AAA'>
  831. DOUBLE-CLICKED &lt;MOUSE&gt; %0 row %1 col %2 -row %3 -col %4 word %5 line
  832. LONG-CLICKED &lt;MOUSE&gt; %0 row %1 col %2 -row %3 -col %4 word %5 line
  833. MOVED &lt;MOUSE&gt; %0 row %1 col %2 -row %3 -col %4 word %5 line
  834. PRESSED &lt;MOUSE&gt; %0 row %1 col %2 -row %3 -col %4 word %5 line
  835. SHORT-CLICKED &lt;MOUSE&gt; %0 row %1 col %2 -row %3 -col %4 word %5 line
  836. RELEASED &lt;MOUSE&gt; %0 row %1 col %2 -row %3 -col %4 word %5 line
  837. SCROLLED &lt;MOUSE&gt; %0 row %1 col %2 -row %3 -col %4 word %5 line
  838. TRIPLE-CLICKED &lt;MOUSE&gt; %0 row %1 col %2 -row %3 -col %4 word %5 line
  839. </span><span style='color:#FFF'>MAP &lt;MOUSE EVENT&gt;
  840. </span><span style='color:#AAA'> Mouse events can be prefixed with MAP to only trigger when the mouse
  841. event occurs inside the VT100 map region.
  842. </span><span style='color:#FFF'>SWIPED [DIR]
  843. </span><span style='color:#AAA'> %0 dir %1 button %2 row %3 col %4 -row %5 -col
  844. %6 row %7 col %8 -row %9 -col %10 rows %11 cols
  845. </span><span style='color:#5F5'>OUTPUT EVENTS
  846. </span><span style='color:#FFF'>BUFFER UPDATE, DISPLAY UPDATE
  847. </span><span style='color:#AAA'> These events have no additional arguments.
  848. RECEIVED LINE %0 raw text %1 plain text
  849. RECEIVED OUTPUT %0 raw text
  850. RECEIVED PROMPT %0 raw text %1 plain text
  851. </span><span style='color:#5F5'>PORT EVENTS
  852. </span><span style='color:#FFF'>CHAT MESSAGE, PORT MESSAGE
  853. </span><span style='color:#AAA'> %0 raw text %1 plain text
  854. </span><span style='color:#FFF'>PORT CONNECTION </span><span style='color:#AAA'>%0 name %1 ip %2 port
  855. </span><span style='color:#FFF'>PORT DISCONNECTION </span><span style='color:#AAA'>%0 name %1 ip %2 port
  856. </span><span style='color:#FFF'>PORT LOG MESSAGE </span><span style='color:#AAA'>%0 name %1 ip %2 port %3 data %4 plain data
  857. </span><span style='color:#FFF'>PORT RECEIVED MESSAGE </span><span style='color:#AAA'>%0 name %1 ip %2 port %3 data %4 plain data
  858. </span><span style='color:#5F5'>SYSTEM EVENTS</span><span style='color:#AAA'>
  859. DAEMON ATTACHED %0 file %1 pid
  860. DAEMON DETACHED %0 file %1 pid
  861. PROGRAM START %0 startup arguments
  862. PROGRAM TERMINATION %0 goodbye message
  863. READ ERROR %0 filename %1 error message
  864. READ FILE %0 filename
  865. WRITE ERROR %0 filename %1 error message
  866. WRITE FILE %0 filename
  867. SYSTEM CRASH %0 message
  868. SYSTEM ERROR %0 name %1 system msg %2 error %3 error msg
  869. UNKNOWN COMMAND %0 raw text
  870. </span><span style='color:#5F5'>TELNET EVENTS
  871. </span><span style='color:#FFF'>IAC &lt;EVENT&gt;
  872. </span><span style='color:#AAA'> IAC TELNET events are made visable using #config telnet info.
  873. </span><span style='color:#FFF'>IAC SB GMCP [MODULE] %0 module %1 data %1 plain data
  874. IAC SB MSSP %0 variable %1 data
  875. IAC SB MSDP %0 variable %1 data %2 plain data
  876. IAC SB MSDP [VAR] %0 variable %1 data %2 plain data
  877. IAC SB NEW-ENVIRON %0 variable %1 data %2 plain data
  878. IAC SB ZMP &lt;VAR&gt; %0 variable %1 data
  879. IAC SB &lt;VAR&gt; %0 variable %1 raw data %2 plain data
  880. </span><span style='color:#5F5'>TIME EVENTS
  881. </span><span style='color:#FFF'>DATE &lt;MONTH-DAY OF MONTH&gt; [HOUR:MINUTE], DAY [DAY OF MONTH],
  882. HOUR [HOUR], MONTH [DAY OF MONTH], TIME &lt;HOUR:MINUTE&gt;[:SECOND],
  883. WEEK [DAY OF WEEK], YEAR [YEAR]
  884. </span><span style='color:#AAA'> %0 year %1 month %2 day of week %3 day of month %4 hour
  885. %5 minute %6 second
  886. </span><span style='color:#5F5'>SCAN EVENTS</span><span style='color:#AAA'>
  887. SCAN CSV HEADER %0 all args %1 arg1 %2 arg2 .. %99 arg99
  888. SCAN CSV LINE %0 all args %1 arg1 %2 arg3 .. %99 arg99
  889. SCAN TSV HEADER %0 all args %1 arg1 %2 arg3 .. %99 arg99
  890. SCAN TSV LINE %0 all args %1 arg1 %2 arg3 .. %99 arg99
  891. </span><span style='color:#5F5'>SCREEN EVENTS</span><span style='color:#AAA'>
  892. SCREEN FOCUS %0 focus (0 or 1)
  893. SCREEN LOCATION %0 rows %1 cols %2 height %3 width
  894. </span><span style='color:#FFF'>SCREEN MOUSE LOCATION
  895. </span><span style='color:#AAA'> %0 row %1 col %2 -row %3 -col %4 pix row %5 pix col
  896. %6 -pix row %7 -pix col %8 location
  897. SCREEN RESIZE %0 rows %1 cols %2 height %3 width
  898. SCREEN SPLIT %0 top row %1 top col %2 bot row %3 bot col
  899. SCREEN UNSPLIT %0 top row %1 top col %2 bot row %3 bot col
  900. </span><span style='color:#5F5'>SESSION EVENTS</span><span style='color:#AAA'>
  901. SESSION ACTIVATED %0 name
  902. SESSION CONNECTED %0 name %1 host %2 ip %3 port
  903. SESSION CREATED %0 name %1 host %2 ip %3 port
  904. SESSION DEACTIVATED %0 name
  905. SESSION DISCONNECTED %0 name %1 host %2 ip %3 port
  906. SESSION TIMED OUT %0 name %1 host %2 ip %3 port
  907. </span><span style='color:#5F5'>VARIABLE EVENTS</span><span style='color:#AAA'>
  908. VARIABLE UPDATE [VAR] %0 name %1 new value
  909. VARIABLE UPDATED [VAR] %0 name %1 new value
  910. </span><span style='color:#5F5'>VT100 EVENTS</span><span style='color:#AAA'>
  911. VT100 SCROLL REGION %0 top row %1 bot row %2 rows %3 cols %4 wrap
  912. To see all events trigger use #event info on. Since this can get
  913. rather spammy it's possible to gag event info messages.
  914. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #event {SESSION CONNECTED} {#read mychar.tin}
  915. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: You can remove an event with the #unevent command.
  916. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#BUTTON'>button</a>, <a href='#DELAY'>delay</a> and <a href='#TICKER'>ticker</a>.
  917. <a name='FOREACH'></a>
  918. </span><span style='color:#5F5'> FOREACH
  919. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #foreach </span><span style='color:#FFF'>{</span><span style='color:#AAA'>list</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>variable</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>commands</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  920. For each item in the provided list the foreach statement will update
  921. the given variable and execute the command part of the statement. List
  922. elements must be separated by braces or semicolons.
  923. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #foreach {bob;tim;kim} {name} {tell &dollar;name Hello}
  924. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #foreach {{bob}{tim}{kim}} {name} {tell &dollar;name Hello}
  925. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#BREAK'>break</a>, <a href='#CONTINUE'>continue</a>, <a href='#LIST'>list</a>, <a href='#LOOP'>loop</a>, <a href='#PARSE'>parse</a>, <a href='#REPEAT'>repeat</a>, <a href='#RETURN'>return</a> and <a href='#WHILE'>while</a>.
  926. <a name='FORMAT'></a>
  927. </span><span style='color:#5F5'> FORMAT
  928. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #format </span><span style='color:#FFF'>{</span><span style='color:#AAA'>variable</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>format</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>argument1</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>argument2</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>etc</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  929. Allows you to store a string into a variable in the exact same way
  930. C's sprintf works with a few enhancements and limitations like a
  931. maximum of 30 arguments.
  932. If you use #format inside an alias or action you must escape %1s as
  933. %+1s or %%1s or %&bsol;1s so the %1 isn't substituted by the trigger.
  934. #format {test} {%+9s} {string} pad string with up to 9 spaces
  935. #format {test} {%-9s} {string} post pad string with up to 9 spaces
  936. #format {test} {%.8s} {string} copy at most 8 characters
  937. #format {test} {%a} {number} print corresponding charset character
  938. #format {test} {%c} {string} use a highlight color name
  939. #format {test} {%d} {number} print a number with integer formatting
  940. #format {test} {%f} {string} perform floating point math
  941. #format {test} {%g} {number} perform thousand grouping on {number}
  942. #format {test} {%h} {string} turn text into a header line
  943. #format {test} {%l} {string} lowercase text
  944. #format {test} {%m} {string} perform mathematical calculation
  945. #format {test} {%n} {name} capitalize the first letter
  946. #format {test} {%p} {string} strip leading and trailing spaces
  947. #format {test} {%r} {string} reverse text, hiya = ayih
  948. #format {test} {%s} {string} print given string
  949. #format {test} {%t} {format} display time with strftime format
  950. optional {{format}{time}} syntax
  951. #format {test} {%u} {string} uppercase text
  952. #format {list} {%w} {string} store word wrapped text in {list}
  953. optional {{string}{width}} syntax
  954. #format {test} {%x} {hex} print corresponding charset character
  955. #format {test} {%A} {char} store corresponding character value
  956. #format {test} {%C} {number} store number in chronological notation
  957. #format {test} {%D} {hex} convert hex to decimal in {test}
  958. #format {hash} {%H} {string} store a 64 bit string hash in {hash}
  959. #format {test} {%L} {string} store the string length in {test}
  960. #format {test} {%M} {number} convert number to metric in {test}
  961. #format {test} {%S} {string} store the number of spelling errors
  962. #format {time} {%T} {} store the epoch time in {time}
  963. #format {time} {%U} {} store the micro epoch time in {time}
  964. #format {test} {%X} {dec} convert dec to hexadecimal in {test}
  965. #format {test} {%%} a literal % character
  966. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: See #help TIME for help on the %t argument.
  967. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CAT'>cat</a>, <a href='#ECHO'>echo</a>, <a href='#FUNCTION'>function</a>, <a href='#LOCAL'>local</a>, <a href='#MATH'>math</a>, <a href='#REPLACE'>replace</a>, <a href='#SCRIPT'>script</a>, <a href='#TIME'>time</a> and <a href='#VARIABLE'>variable</a>.
  968. <a name='FUNCTION'></a>
  969. </span><span style='color:#5F5'> FUNCTION
  970. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #function </span><span style='color:#FFF'>{</span><span style='color:#AAA'>name</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>operation</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  971. Functions allow you to execute a script within a line of text, and
  972. replace the function call with the line of text generated by the
  973. function.
  974. Be aware that each function should use the #return command at the
  975. end of the function with the result, or set the {result} variable.
  976. To use a function use the @ character before the function name.
  977. The function arguments should be placed between braces behind the
  978. function name with argument separated by semicolons.
  979. Functions can be escaped by adding additional @ signs.
  980. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #function test #return 42;#showme @@test{}
  981. The function itself can use the provided arguments which are stored
  982. in %1 to %99, with %0 holding all arguments.
  983. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #function {rnd} {#math {result} {1 d (%2 - %1 + 1) + %1 - 1}}
  984. #show A random number between 100 and 200: @rnd{100;200}
  985. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #function gettime {#format result %t %H:%M}
  986. #show The current time is @gettime{}
  987. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: You can remove a function with the #unfunction command.
  988. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#FORMAT'>format</a>, <a href='#LOCAL'>local</a>, <a href='#MATH'>math</a>, <a href='#REPLACE'>replace</a>, <a href='#SCRIPT'>script</a> and <a href='#VARIABLE'>variable</a>.
  989. <a name='GAG'></a>
  990. </span><span style='color:#5F5'> GAG
  991. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #gag </span><span style='color:#FFF'>{</span><span style='color:#AAA'>string</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  992. Removes any line that contains the string.
  993. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: See '#help action', for more information about triggers.
  994. There are a system messages that can be gagged using gag events.
  995. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: You can remove a gag with the #ungag command.
  996. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#ACTION'>action</a>, <a href='#HIGHLIGHT'>highlight</a>, <a href='#PROMPT'>prompt</a> and <a href='#SUBSTITUTE'>substitute</a>.
  997. <a name='GREETING'></a>
  998. </span><span style='color:#5F5'> GREETING
  999. </span><span style='color:#0AA'> ####################################################################
  1000. #</span><span style='color:#AAA'> </span><span style='color:#0AA'>#
  1001. #</span><span style='color:#AAA'> T I N T I N + + 2.02.04b </span><span style='color:#0AA'>#
  1002. #</span><span style='color:#AAA'> </span><span style='color:#0AA'>#
  1003. #</span><span style='color:#AAA'> Code by Peter Unold, Bill Reis, and Igor van den Hoven </span><span style='color:#0AA'>#
  1004. #</span><span style='color:#AAA'> </span><span style='color:#0AA'>#
  1005. ####################################################################
  1006. <a name='GREP'></a>
  1007. </span><span style='color:#5F5'> GREP
  1008. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #grep </span><span style='color:#FFF'>[</span><span style='color:#AAA'>page</span><span style='color:#FFF'>] {</span><span style='color:#AAA'>search string</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1009. This command allows you to search for matching lines in your scroll
  1010. back buffer. The amount of matches shown equals your screen size. If
  1011. you want to search back further use the optional page number. You can
  1012. use wildcards for better search results. Be aware the search string
  1013. is case sensitive, which can be disabled by using %i.
  1014. By default grep searches from the end of the scrollback buffer to the
  1015. beginning, this can be reversed by using a negative page number.
  1016. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #grep Bubba tells you
  1017. This will show all occasions where bubba tells you something.
  1018. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#BUFFER'>buffer</a>, <a href='#ECHO'>echo</a> and <a href='#SHOWME'>showme</a>.
  1019. <a name='HELP'></a>
  1020. </span><span style='color:#5F5'> HELP
  1021. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #help </span><span style='color:#FFF'>{</span><span style='color:#AAA'>subject</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1022. Without an argument #help will list all available help subjects.
  1023. Using #help %* will display all help entries.
  1024. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#COMMANDS'>commands</a>, <a href='#DEBUG'>debug</a>, <a href='#IGNORE'>ignore</a>, <a href='#INFO'>info</a>, <a href='#MESSAGE'>message</a> and <a href='#STATEMENTS'>statements</a>.
  1025. <a name='HIGHLIGHT'></a>
  1026. </span><span style='color:#5F5'> HIGHLIGHT
  1027. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #highlight </span><span style='color:#FFF'>{</span><span style='color:#AAA'>string</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>color names</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>priority</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1028. The highlight command is used to allow you to highlight strings of text.
  1029. Available color options are:
  1030. reset - resets the color state to default
  1031. light - turns the color light in 16 color mode.
  1032. dark - turns the color dark in 16 color mode.
  1033. underscore - underscores the text.
  1034. blink - makes the text blink.
  1035. reverse - reverse foreground and background color.
  1036. b - makes next color the background color.
  1037. Available color names are:
  1038. &lt;F06B&gt; - azure &lt;F08F&gt; - Azure
  1039. &lt;F00B&gt; - blue &lt;F00F&gt; - Blue
  1040. &lt;F0BB&gt; - cyan &lt;F0FF&gt; - Cyan
  1041. &lt;F000&gt; - ebony &lt;F666&gt; - Ebony
  1042. &lt;F0B0&gt; - green &lt;F0F0&gt; - Green
  1043. &lt;F0B6&gt; - jade &lt;F0F8&gt; - Jade
  1044. &lt;F6B0&gt; - lime &lt;F8F0&gt; - Lime
  1045. &lt;FB0B&gt; - magenta &lt;FF0F&gt; - Magenta
  1046. &lt;FB60&gt; - orange &lt;FF80&gt; - Orange
  1047. &lt;FB06&gt; - pink &lt;FF08&gt; - Pink
  1048. &lt;FB00&gt; - red &lt;FF00&gt; - Red
  1049. &lt;F888&gt; - silver &lt;FDDD&gt; - Silver
  1050. &lt;F860&gt; - tan &lt;FDB0&gt; - Tan
  1051. &lt;F60B&gt; - violet &lt;F80F&gt; - Violet
  1052. &lt;FBBB&gt; - white &lt;FFFF&gt; - White
  1053. &lt;FBB0&gt; - yellow &lt;FFF0&gt; - Yellow
  1054. The %1-99 variables can be used as 'wildcards' that will match with any
  1055. text. They are useful for highlighting a complete line. The %0 variable
  1056. should never be used in highlights.
  1057. You may start the string to highlight with a ^ to only highlight text
  1058. if it begins the line.
  1059. Besides color names also &lt;abc&gt; color codes can be used.
  1060. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #high {Valgar} {reverse blink}
  1061. Prints every occurrence of 'Valgar' in blinking reverse video.
  1062. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #high {^You %1} {bold cyan}
  1063. Boldfaces any line that starts with 'You' in cyan.
  1064. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #high {Bubba} {red underscore b green}
  1065. Highlights the name Bubba as red underscored text on green background.
  1066. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: See '#help action', for more information about triggers.
  1067. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: See '#help substitute', for more advanced color substitution.
  1068. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: This command only works with ANSI/VT100 terminals or emulators.
  1069. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: You can remove a highlight with the #unhighlight command.
  1070. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#ACTION'>action</a>, <a href='#GAG'>gag</a>, <a href='#PROMPT'>prompt</a> and <a href='#SUBSTITUTE'>substitute</a>.
  1071. <a name='HISTORY'></a>
  1072. </span><span style='color:#5F5'> HISTORY
  1073. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #history </span><span style='color:#FFF'>{</span><span style='color:#AAA'>delete</span><span style='color:#FFF'>}</span><span style='color:#AAA'> Delete the last command.
  1074. #history </span><span style='color:#FFF'>{</span><span style='color:#AAA'>insert</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>command</span><span style='color:#FFF'>}</span><span style='color:#AAA'> Insert a command.
  1075. #history </span><span style='color:#FFF'>{</span><span style='color:#AAA'>list</span><span style='color:#FFF'>}</span><span style='color:#AAA'> Display the entire command history.
  1076. #history </span><span style='color:#FFF'>{</span><span style='color:#AAA'>read</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>filename</span><span style='color:#FFF'>}</span><span style='color:#AAA'> Read a command history from file.
  1077. #history </span><span style='color:#FFF'>{</span><span style='color:#AAA'>write</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>filename</span><span style='color:#FFF'>}</span><span style='color:#AAA'> Write a command history to file.
  1078. Without an argument all available options are shown.
  1079. By default all commands are saved to the history list and the history
  1080. list is saved between sessions in the ~/.tintin/history.txt file.
  1081. You can set the character to repeat a command in the history with the
  1082. #config {REPEAT CHAR} {&lt;character&gt;} configuration option, by default
  1083. this is set to the exclamation mark.
  1084. You can use ! by itself to repeat the last command, or !&lt;text&gt; to
  1085. repeat the last command starting with the given text.
  1086. You can use #config {REPEAT ENTER} {ON} to repeat the last command
  1087. when you press enter on an empty line.
  1088. You can press ctrl-r to enter an interactive regex enabled history
  1089. search mode, or by issuing #cursor {history search}.
  1090. TinTin++ tries to bind the arrow up and down keys to scroll through
  1091. the history list by default. You can bind these with a macro yourself
  1092. using #cursor {history next} and #cursor {history prev}. Many #cursor
  1093. commands only work properly when bound with a macro.
  1094. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#ALIAS'>alias</a>, <a href='#CURSOR'>cursor</a>, <a href='#KEYPAD'>keypad</a>, <a href='#MACRO'>macro</a>, <a href='#SPEEDWALK'>speedwalk</a> and <a href='#TAB'>tab</a>.
  1095. <a name='IF'></a>
  1096. </span><span style='color:#5F5'> IF
  1097. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #if </span><span style='color:#FFF'>{</span><span style='color:#AAA'>conditional</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>commands if true</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>commands if false</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1098. The 'if' command is one of the most powerful commands added since
  1099. TINTIN III. It works similar to an 'if' statement in other languages,
  1100. and is strictly based on the way C handles its conditional statements.
  1101. When an 'if' command is encountered, the conditional statement is
  1102. evaluated, and if TRUE (any non-zero result) the commands are executed.
  1103. The 'if' statement is only evaluated if it is read, so you must nest
  1104. the 'if' statement inside another statement (most likely an 'action'
  1105. command). The conditional is evaluated exactly the same as in the
  1106. 'math' command only instead of storing the result, the result is used
  1107. to determine whether to execute the commands.
  1108. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #action {%0 gives you %1 gold coins.} {#if {%1&gt;5000} {thank %0}}
  1109. If someone gives you more than 5000 coins, thank them.
  1110. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: See '#help math', for more information.
  1111. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CASE'>case</a>, <a href='#DEFAULT'>default</a>, <a href='#ELSE'>else</a>, <a href='#ELSEIF'>elseif</a>, <a href='#SWITCH'>switch</a> and <a href='#REGEXP'>regexp</a>.
  1112. <a name='IGNORE'></a>
  1113. </span><span style='color:#5F5'> IGNORE
  1114. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #ignore </span><span style='color:#FFF'>{</span><span style='color:#AAA'>listname</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>on</span><span style='color:#FFF'>|</span><span style='color:#AAA'>off</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1115. Toggles a list on or off. With no arguments it shows your current
  1116. settings, as well as the list names that you can ignore.
  1117. If you for example set ACTIONS to OFF actions will no longer trigger.
  1118. Not every list can be ignored.
  1119. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CLASS'>class</a>, <a href='#DEBUG'>debug</a>, <a href='#INFO'>info</a>, <a href='#KILL'>kill</a> and <a href='#MESSAGE'>message</a>.
  1120. <a name='INDEX'></a>
  1121. </span><span style='color:#5F5'> INDEX
  1122. INDEX
  1123. </span><span style='color:#AAA'>
  1124. On this page you'll find an introduction to using TinTin++. Additional
  1125. information can be found in the individual help sections.
  1126. </span><span style='color:#5F5'>
  1127. Starting and Ending
  1128. </span><span style='color:#AAA'>
  1129. The syntax for starting TinTin++ is: ./tt++ [command file]
  1130. Read more about the command file in the files section below. Remember
  1131. one thing though. All actions, aliases, substitutions, etc, defined
  1132. when starting up TinTin++ are inherited by all sessions.
  1133. If you want to exit TinTin++ type '#end' or press ctrl-d on an empty
  1134. line.
  1135. For the WinTin++ users, if you want to paste text use shift-insert,
  1136. text is automatically copied upon selection. This is typical Linux
  1137. behavior, but it can take some getting used to.
  1138. </span><span style='color:#5F5'>
  1139. Basic features
  1140. </span><span style='color:#AAA'>
  1141. I'll start by explaining some of the very basic and important features:
  1142. All TinTin++ commands starts with a '#'.
  1143. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #help -- #help is a client command, and isn't send to the server.
  1144. All TinTin++ commands can be abbreviated when typed.
  1145. #he -- Typing #he is the same as typing #help though it's suggested to
  1146. use at least 3 letter abbreviations just in case another command is
  1147. added that starts with 'he'.
  1148. All commands can be separated with a ';'.
  1149. n;l green;s;say Dan Dare is back! -- do these 4 commands
  1150. There are 3 ways ';'s can be overruled.
  1151. &bsol;say Hello ;) -- Lines starting with a '&bsol;' aren't parsed by TinTin++.
  1152. say Hello &bsol;;) -- The escape character can escape 1 letter.
  1153. #config verbatim on -- Everything is send as is except '#' commands.
  1154. </span><span style='color:#5F5'>
  1155. Connecting to a server
  1156. </span><span style='color:#FFF'>
  1157. Command</span><span style='color:#AAA'>: #session </span><span style='color:#FFF'>{</span><span style='color:#AAA'>session name</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>server address</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>port</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1158. Example: #session someone tintin.sourceforge.net 4321
  1159. You can have more than one session, in which case you can switch
  1160. between sessions typing #&lt;session name&gt;.
  1161. You can get a list of all sessions by typing: #session. The current
  1162. active session is marked with (active). Snooped sessions with
  1163. (snooped). MCCP sessions (compression) with (mccp 2) and (mccp 3).
  1164. </span><span style='color:#5F5'>
  1165. Split
  1166. </span><span style='color:#FFF'>
  1167. Command</span><span style='color:#AAA'>: #split
  1168. The split command will create a separated input and output area.
  1169. Using the #prompt command you can capture the prompt and place it on
  1170. the split line. To get rid of the split interface you can use #unsplit
  1171. which will restore the terminal settings to default.
  1172. </span><span style='color:#5F5'>
  1173. Alias
  1174. </span><span style='color:#FFF'>
  1175. Command</span><span style='color:#AAA'>: #alias </span><span style='color:#FFF'>{</span><span style='color:#AAA'>name</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>commands</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1176. The syntax of the #alias command is almost like alias in csh.
  1177. Use this command to define aliases. The variables %0, %1.. %9 contain
  1178. the arguments to the aliased command as follows:
  1179. the %0 variable contains ALL the arguments.
  1180. the %1 variable contains the 1st argument
  1181. ....
  1182. the %9 variable contains the 9th argument
  1183. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #alias greet say Greetings, most honorable %1
  1184. If there are no variables on the right-side of the alias definition,
  1185. any arguments following the aliases-command will be appended to the
  1186. command string.
  1187. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #alias ff cast 'fireball' -- 'ff bob' equals: cast 'fireball' bob
  1188. If you want an alias to execute more commands, you must use braces.
  1189. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #alias ws </span><span style='color:#FFF'>{</span><span style='color:#AAA'>wake;stand</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1190. To delete an alias use the #unalias command.
  1191. WARNING! TinTin++ doesn't baby sit, and hence does not check for
  1192. recursive aliases! You can avoid recursion by escaping the entire
  1193. line.
  1194. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #alias put &bsol;put %1 in %2
  1195. Or by using the send command.
  1196. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #send put %1 in %2
  1197. </span><span style='color:#5F5'> Action
  1198. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #action </span><span style='color:#FFF'>{</span><span style='color:#AAA'>action-text</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>commands</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1199. Use this command to define an action to take place when a particular
  1200. text appears on your screen. There are 99 variables you can use as
  1201. wildcards in the action-text.
  1202. These variables are %1, %2, %3 .... %9, %10, %11 ... %97, %98, %99.
  1203. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #action </span><span style='color:#FFF'>{</span><span style='color:#AAA'>You are hungry</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>get bread bag;eat bread</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1204. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #action </span><span style='color:#FFF'>{</span><span style='color:#AAA'>%1 has arrived.</span><span style='color:#FFF'>}</span><span style='color:#AAA'> shake %1 -- shake hands with people arriving.
  1205. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #action </span><span style='color:#FFF'>{</span><span style='color:#AAA'>%1 tells you '%2'</span><span style='color:#FFF'>}
  1206. {</span><span style='color:#AAA'>tell bob %1 told me '%2'</span><span style='color:#FFF'>}</span><span style='color:#AAA'> -- forward tells.
  1207. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #action </span><span style='color:#FFF'>{</span><span style='color:#AAA'>tells you</span><span style='color:#FFF'>}</span><span style='color:#AAA'> #bell -- beep on tell.
  1208. You can have TinTin++ ignore actions if you type '#ignore actions on'.
  1209. You can see what commands TinTin++ executes when an action triggers
  1210. by typing '#debug actions on'.
  1211. You can remove actions with the #unaction command.
  1212. </span><span style='color:#5F5'>
  1213. Highlight
  1214. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #highlight </span><span style='color:#FFF'>{</span><span style='color:#AAA'>text</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>color</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1215. This command works a bit like #action. The purpose of this command is
  1216. to substitute text from the server with color you provide. This command
  1217. is a simplified version of the #substitute command.
  1218. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #high </span><span style='color:#FFF'>{</span><span style='color:#AAA'>Snowy</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>light yellow</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1219. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #high </span><span style='color:#FFF'>{</span><span style='color:#AAA'>%*Snowy%*</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>light yellow</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1220. Use #unhigh to delete highlights.
  1221. Speedwalk
  1222. If you type a command consisting ONLY of letters and numbers n, e, s,
  1223. w, u, d - then this command can be interpreted as a serie of movement
  1224. commands.
  1225. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: ssw2n -- go south, south, west, north, north
  1226. If you have problems with typing some commands that actually ONLY
  1227. consists of these letters, then type them in CAPS. For example when
  1228. checking the NEWS or when asked to enter NEW as your name.
  1229. You must enable speedwalking with: #config speedwalk on/off.
  1230. </span><span style='color:#5F5'>
  1231. Ticker
  1232. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #ticker </span><span style='color:#FFF'>{</span><span style='color:#AAA'>name</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>commands</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>seconds</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1233. The name can be whatever you want it to be, and is only required for
  1234. the unticker command. The commands will be executed every x amount of
  1235. seconds, which is specified in the interval part.
  1236. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #tick </span><span style='color:#FFF'>{</span><span style='color:#AAA'>tick</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>#delay 50 #show 10 SECONDS TO TICK!;#show TICK!!!</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>60</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1237. This creates a ticker with the name </span><span style='color:#FFF'>{</span><span style='color:#AAA'>tick</span><span style='color:#FFF'>}</span><span style='color:#AAA'> which will print TICK!!!,
  1238. as well as print a warning when the next tick will occure.
  1239. You can remove tickers with #untick
  1240. </span><span style='color:#5F5'>
  1241. Command files
  1242. </span><span style='color:#AAA'>
  1243. When you order TinTin++ to read a command file, it parses all the text
  1244. in the file. You can use command files to keep aliases/actions in,
  1245. login to a server (name, password etc..) and basically all kinds of
  1246. commands.
  1247. You can make the command files with either a text editor (suggested),
  1248. or use the #write command to write out a file.
  1249. Commands for files:
  1250. #read filename -- read and execute the file.
  1251. #write filename -- write all actions/aliases/substitutes/etc known for
  1252. the current session to a file.
  1253. </span><span style='color:#5F5'>
  1254. Repeating Commands
  1255. </span><span style='color:#AAA'>
  1256. You can repeat a command, the syntax is: #number command
  1257. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #5 cackle -- if you just killed bob the wizard.
  1258. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #10 </span><span style='color:#FFF'>{</span><span style='color:#AAA'>buy bread;put bread bag</span><span style='color:#FFF'>}</span><span style='color:#AAA'> -- repeat these 2 commands 10 times.
  1259. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #100 ooc w00t w00t!!!!! -- nochannel yourself.
  1260. </span><span style='color:#5F5'>
  1261. History
  1262. </span><span style='color:#AAA'>
  1263. TinTin++ has a limited subset of the csh history features.
  1264. ! -- repeat the last command
  1265. !cast -- repeat the last command starting with cast
  1266. ctrl-r -- enter the reverse history search mode.
  1267. </span><span style='color:#5F5'>
  1268. Map commands
  1269. </span><span style='color:#AAA'>
  1270. TinTin++ has a powerful highly configurable automapper. Whenever
  1271. you type n/ne/e/se/s/sw/w/nw/n/u/d tt++ tries to keep track of your
  1272. movement.
  1273. Commands for map:
  1274. #map create -- create a map.
  1275. #map goto 1 -- go to the first room in the map, created by default.
  1276. #map map -- display the map.
  1277. #map undo -- undo your last map alteration.
  1278. #map write &lt;filename&gt; -- save the map to file.
  1279. #map read &lt;filename&gt; -- load a map from file.
  1280. There are many other map options and it's beyond the scope of this
  1281. help section to explain everything there is to know, but I'll give
  1282. a set of commands that will get most people started.
  1283. #map create
  1284. #split 12 1
  1285. #map flag unicode on
  1286. #map flag vt on
  1287. #map goto 1
  1288. These commands will create a 12 row vt100 split section at the top of
  1289. your screen where a map drawn using unicode characters is displayed.
  1290. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #action </span><span style='color:#FFF'>{</span><span style='color:#AAA'>There is no exit in that direction.</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>#map undo</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1291. The map will be automatically created as you move around.
  1292. </span><span style='color:#5F5'>
  1293. Help
  1294. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #help </span><span style='color:#FFF'>{</span><span style='color:#AAA'>subject</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1295. The help command is your friend and contains the same helpfiles
  1296. inside TinTin++ as are available on the website. If you type #help
  1297. without an argument you will see the various available help subjects
  1298. which try to explain the TinTin++ commands and features in greater
  1299. detail.
  1300. </span><span style='color:#5F5'>
  1301. Enjoy</span><span style='color:#AAA'>
  1302. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CHARACTERS'>characters</a>, <a href='#COLORS'>colors</a>, <a href='#COORDINATES'>coordinates</a>, <a href='#EDITING'>editing</a>, <a href='#ESCAPE_CODES'>escape_codes</a>, <a href='#GREETING'>greeting</a>, <a href='#KEYPAD'>keypad</a>, <a href='#LISTS'>lists</a>, <a href='#MAPPING'>mapping</a>, <a href='#MATHEMATICS'>mathematics</a>, <a href='#SCREEN_READER'>screen_reader</a>, <a href='#SESSIONNAME'>sessionname</a>, <a href='#SPEEDWALK'>speedwalk</a>, <a href='#STATEMENTS'>statements</a>, <a href='#SUSPEND'>suspend</a> and <a href='#TIME'>time</a>.
  1303. <a name='INFO'></a>
  1304. </span><span style='color:#5F5'> INFO
  1305. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #info </span><span style='color:#FFF'>{</span><span style='color:#AAA'>listname</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>LIST</span><span style='color:#FFF'>|</span><span style='color:#AAA'>ON</span><span style='color:#FFF'>|</span><span style='color:#AAA'>OFF</span><span style='color:#FFF'>|</span><span style='color:#AAA'>SAVE</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1306. Without an argument info displays the settings of every tintin list.
  1307. By providing the name of a list and the LIST option it shows all
  1308. triggers/variables associated with that list. With the SAVE option
  1309. This data is written to the info variable.
  1310. #info cpu will show information about tintin's cpu usage.
  1311. #info mccp will show information about data compression.
  1312. #info stack will show the low level debugging stack.
  1313. #info session will show some session information.
  1314. #info system will show some system information.
  1315. #info unicode will show information on the provided character.
  1316. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CLASS'>class</a>, <a href='#DEBUG'>debug</a>, <a href='#IGNORE'>ignore</a>, <a href='#KILL'>kill</a> and <a href='#MESSAGE'>message</a>.
  1317. <a name='KEYPAD'></a>
  1318. </span><span style='color:#5F5'> KEYPAD
  1319. </span><span style='color:#AAA'>When TinTin++ starts up it sends &bsol;e= to the terminal to enable the terminal's
  1320. application keypad mode, which can be disabled using #show {&bsol;e&gt;}
  1321. </span><span style='color:#FFF'> Configuration A Configuration B Configuration C</span><span style='color:#0AA'>
  1322. ╭─────┬─────┬─────┬─────╮ ╭─────┬─────┬─────┬─────╮ ╭─────┬─────┬─────┬─────╮
  1323. │</span><span style='color:#FFF'>num</span><span style='color:#0AA'> │</span><span style='color:#FFF'>/</span><span style='color:#0AA'> │</span><span style='color:#FFF'>*</span><span style='color:#0AA'> │</span><span style='color:#FFF'>-</span><span style='color:#0AA'> │ │</span><span style='color:#FFF'>num</span><span style='color:#0AA'> │</span><span style='color:#FFF'>/</span><span style='color:#0AA'> │</span><span style='color:#FFF'>*</span><span style='color:#0AA'> │</span><span style='color:#FFF'>-</span><span style='color:#0AA'> │ │</span><span style='color:#FFF'>Num</span><span style='color:#0AA'> │</span><span style='color:#FFF'>nkp/</span><span style='color:#0AA'> │</span><span style='color:#FFF'>nkp*</span><span style='color:#0AA'> │</span><span style='color:#FFF'>nkp-</span><span style='color:#0AA'> │
  1324. ├─────┼─────┼─────┼─────┤ ├─────┼─────┼─────┼─────┤ ├─────┼─────┼─────┼─────┤
  1325. │</span><span style='color:#FFF'>7</span><span style='color:#0AA'> │</span><span style='color:#FFF'>8</span><span style='color:#0AA'> │</span><span style='color:#FFF'>9</span><span style='color:#0AA'> │</span><span style='color:#FFF'>+</span><span style='color:#0AA'> │ │</span><span style='color:#FFF'>Home</span><span style='color:#0AA'> │</span><span style='color:#FFF'>Up</span><span style='color:#0AA'> │</span><span style='color:#FFF'>PgUp</span><span style='color:#0AA'> │</span><span style='color:#FFF'>+</span><span style='color:#0AA'> │ │</span><span style='color:#FFF'>nkp7</span><span style='color:#0AA'> │</span><span style='color:#FFF'>nkp8</span><span style='color:#0AA'> │</span><span style='color:#FFF'>nkp9</span><span style='color:#0AA'> │</span><span style='color:#FFF'>nkp+</span><span style='color:#0AA'> │
  1326. ├─────┼─────┼─────┤ │ ├─────┼─────┼─────┤ │ ├─────┼─────┼─────┤ │
  1327. │</span><span style='color:#FFF'>4</span><span style='color:#0AA'> │</span><span style='color:#FFF'>5</span><span style='color:#0AA'> │</span><span style='color:#FFF'>6</span><span style='color:#0AA'> │ │ │</span><span style='color:#FFF'>Left</span><span style='color:#0AA'> │</span><span style='color:#FFF'>Cntr</span><span style='color:#0AA'> │</span><span style='color:#FFF'>Right</span><span style='color:#0AA'>│ │ │</span><span style='color:#FFF'>nkp4</span><span style='color:#0AA'> │</span><span style='color:#FFF'>nkp5</span><span style='color:#0AA'> │</span><span style='color:#FFF'>nkp6</span><span style='color:#0AA'> │ │
  1328. ├─────┼─────┼─────┼─────┤ ├─────┼─────┼─────┼─────┤ ├─────┼─────┼─────┼─────┤
  1329. │</span><span style='color:#FFF'>1</span><span style='color:#0AA'> │</span><span style='color:#FFF'>2</span><span style='color:#0AA'> │</span><span style='color:#FFF'>3</span><span style='color:#0AA'> │</span><span style='color:#FFF'>Enter</span><span style='color:#0AA'>│ │</span><span style='color:#FFF'>End</span><span style='color:#0AA'> │</span><span style='color:#FFF'>Down</span><span style='color:#0AA'> │</span><span style='color:#FFF'>PgDn</span><span style='color:#0AA'> │</span><span style='color:#FFF'>Enter</span><span style='color:#0AA'>│ │</span><span style='color:#FFF'>nkp1</span><span style='color:#0AA'> │</span><span style='color:#FFF'>nkp2</span><span style='color:#0AA'> │</span><span style='color:#FFF'>nkp3</span><span style='color:#0AA'> │</span><span style='color:#FFF'>nkpEn</span><span style='color:#0AA'>│
  1330. ├─────┴─────┼─────┤ │ ├─────┴─────┼─────┤ │ ├─────┴─────┼─────┤ │
  1331. │</span><span style='color:#FFF'>0</span><span style='color:#0AA'> │</span><span style='color:#FFF'>.</span><span style='color:#0AA'> │ │ │</span><span style='color:#FFF'>Ins</span><span style='color:#0AA'> │</span><span style='color:#FFF'>Del</span><span style='color:#0AA'> │ │ │</span><span style='color:#FFF'>nkp0</span><span style='color:#0AA'> │</span><span style='color:#FFF'>nkp.</span><span style='color:#0AA'> │ │
  1332. ╰───────────┴─────┴─────╯ ╰───────────┴─────┴─────╯ ╰───────────┴─────┴─────╯
  1333. </span><span style='color:#AAA'>
  1334. With keypad mode disabled numlock on will give you configuration A, and numlock
  1335. off will give you configuration B. With keypad mode enabled you'll get
  1336. configuration C.
  1337. </span><span style='color:#FFF'>Terminals that support keypad mode
  1338. </span><span style='color:#AAA'>Linux Console, PuTTY, Eterm, aterm.
  1339. </span><span style='color:#FFF'>Terminals that do not support keypad mode
  1340. </span><span style='color:#AAA'>RXVT on Cygwin, Windows Console, Gnome Terminal, Konsole.
  1341. </span><span style='color:#FFF'>Peculiar Terminals
  1342. </span><span style='color:#AAA'>RXVT requires turning off numlock to enable configuration C.
  1343. Xterm may require disabling Alt/NumLock Modifiers (num-lock) in the ctrl-left
  1344. click menu. Or edit ~/.Xresources and add XTerm*VT100.numLock:false
  1345. Mac OS X Terminal requires enabling 'strict vt100 keypad behavior' in
  1346. Terminal -&gt; Window Settings -&gt; Emulation.
  1347. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#COLORS'>colors</a>, <a href='#COORDINATES'>coordinates</a>, <a href='#ESCAPE'>escape</a>, <a href='#MATHEMATICS'>mathematics</a> and <a href='#PCRE'>pcre</a>.
  1348. <a name='KILL'></a>
  1349. </span><span style='color:#5F5'> KILL
  1350. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #kill </span><span style='color:#FFF'>{</span><span style='color:#AAA'>list</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>pattern</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1351. Without an argument, the kill command clears all lists. Useful if
  1352. you don't want to exit tintin to reload your command files.
  1353. With one argument a specific list can be cleared.
  1354. With two arguments the triggers in the chosen list that match the
  1355. given pattern will be removed.
  1356. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #kill alias %*test*
  1357. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CLASS'>class</a>, <a href='#DEBUG'>debug</a>, <a href='#IGNORE'>ignore</a>, <a href='#INFO'>info</a> and <a href='#MESSAGE'>message</a>.
  1358. <a name='LINE'></a>
  1359. </span><span style='color:#5F5'> LINE
  1360. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #line </span><span style='color:#FFF'>{</span><span style='color:#AAA'>option</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>argument</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1361. </span><span style='color:#5F5'>
  1362. Line sub commands that alter the argument.
  1363. </span><span style='color:#AAA'>
  1364. </span><span style='color:#FFF'>#line strip &lt;argument&gt;
  1365. </span><span style='color:#AAA'> Argument is executed with all color codes stripped.
  1366. </span><span style='color:#FFF'>#line substitute &lt;options&gt; &lt;argument&gt;
  1367. </span><span style='color:#AAA'> Argument is executed using the provided substitutions, available
  1368. options are: arguments, colors, escapes, functions, secure, and
  1369. variables.
  1370. </span><span style='color:#5F5'>
  1371. Line sub commands that alter how the line is executed.
  1372. </span><span style='color:#AAA'>
  1373. </span><span style='color:#FFF'>#line background &lt;argument&gt;
  1374. </span><span style='color:#AAA'> Prevent new session activation.
  1375. </span><span style='color:#FFF'>#line capture &lt;variable&gt; &lt;argument.
  1376. </span><span style='color:#AAA'> Argument is executed and output stored in &lt;variable&gt;.
  1377. </span><span style='color:#FFF'>#line convert &lt;argument&gt;
  1378. </span><span style='color:#AAA'> Argument is executed with escaped meta characters.
  1379. </span><span style='color:#FFF'>#line debug &lt;argument&gt;
  1380. </span><span style='color:#AAA'> Argument is executed in debug mode.
  1381. </span><span style='color:#FFF'>#line gag
  1382. </span><span style='color:#AAA'> Gag the next line.
  1383. </span><span style='color:#FFF'>#line ignore {argument}
  1384. </span><span style='color:#AAA'> Argument is executed without any triggers being checked.
  1385. </span><span style='color:#FFF'>#line local {argument}
  1386. </span><span style='color:#AAA'> Argument is executed with all newly and indirectly
  1387. created variables being local.
  1388. </span><span style='color:#FFF'>#line log &lt;filename&gt; [text]
  1389. </span><span style='color:#AAA'> Log the next line to file unless the [text] argument is
  1390. provided.
  1391. </span><span style='color:#FFF'>#line logmode &lt;option&gt; &lt;argument&gt;
  1392. </span><span style='color:#AAA'> Argument is executed using the provided logmode, available
  1393. modes are: html, plain, and raw.
  1394. </span><span style='color:#FFF'>#line msdp &lt;argument&gt;
  1395. </span><span style='color:#AAA'> Turn the argument into an msdp telnet sequence, starting at the
  1396. first opening brace. Will turn tintin tables into msdp tables,
  1397. with semicolons being used to create msdp arrays.
  1398. </span><span style='color:#FFF'>#line multishot &lt;number&gt; &lt;argument&gt;
  1399. </span><span style='color:#AAA'> Argument is executed in multishot mode, all triggers created
  1400. will only fire the given number of times.
  1401. </span><span style='color:#FFF'>#line oneshot &lt;argument&gt;
  1402. </span><span style='color:#AAA'> Argument is executed in oneshot mode, all triggers created will
  1403. only fire once.
  1404. </span><span style='color:#FFF'>#line quiet &lt;argument&gt;
  1405. </span><span style='color:#AAA'> Argument is executed with suppression of most system messages.
  1406. </span><span style='color:#FFF'>#line verbatim &lt;argument&gt;
  1407. </span><span style='color:#AAA'> Argument is executed verbatim, prohibiting variable and function
  1408. substitutions.
  1409. </span><span style='color:#FFF'>#line verbose &lt;argument&gt;
  1410. </span><span style='color:#AAA'> Argument is executed with most system messages enabled.
  1411. When using #line log and logging in html format use &bsol;c&lt; &bsol;c&gt; &bsol;c&amp; &bsol;c&quot; to
  1412. log a literal &lt; &gt; &amp; and &quot;.
  1413. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CLASS'>class</a> and <a href='#CONFIG'>config</a>.
  1414. <a name='LIST'></a>
  1415. </span><span style='color:#5F5'> LIST
  1416. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #list </span><span style='color:#FFF'>{</span><span style='color:#AAA'>variable</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>option</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>argument</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1417. #list {var} {add} {item} Add {item} to the list
  1418. #list {var} {clear} Empty the given list
  1419. #list {var} {collapse} Turn list into a variable
  1420. #list {var} {create} {item} Create a list using {items}
  1421. #list {var} {delete} {index} {number} Delete the item at {index},
  1422. the {number} is optional.
  1423. #list {var} {explode} Turn list into a character list
  1424. #list {var} {index} Index a list table for sorting
  1425. #list {var} {insert} {index} {string} Insert {string} at given index
  1426. #list {var} {find} {string} {variable} Return the found index
  1427. #list {var} {get} {index} {variable} Copy an item to {variable}
  1428. #list {var} {order} {string} Insert item in numerical order
  1429. #list {var} {shuffle} Shuffle the list
  1430. #list {var} {set} {index} {string} Change the item at {index}
  1431. #list {var} {simplify} {string} Turn list into a simple list
  1432. #list {var} {size} {variable} Copy list size to {variable}
  1433. #list {var} {sort} {string} Insert item in alphabetic order
  1434. #list {var} {tokenize} {string} Create a character list
  1435. The index should be between 1 and the list's length. You can also give
  1436. a negative value, in which case -1 equals the last item in the list, -2
  1437. the second last, etc.
  1438. When inserting an item a positive index will prepend the item at the
  1439. given index, while a negative index will append the item.
  1440. The add and create options allow using multiple items, as well
  1441. as semicolon separated items.
  1442. A length of 0 is returned for an empty or non existant list.
  1443. You can directly access elements in a list variable using &dollar;var[1],
  1444. &dollar;var[2], &dollar;var[-1], etc.
  1445. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#BREAK'>break</a>, <a href='#CONTINUE'>continue</a>, <a href='#FOREACH'>foreach</a>, <a href='#LOOP'>loop</a>, <a href='#PARSE'>parse</a>, <a href='#REPEAT'>repeat</a>, <a href='#RETURN'>return</a> and <a href='#WHILE'>while</a>.
  1446. <a name='LISTS'></a>
  1447. </span><span style='color:#5F5'> LISTS
  1448. </span><span style='color:#AAA'> There are several different types of lists in tintin which behave in a
  1449. fairly universal manner. To properly explain lists it's easiest to
  1450. explain the most basic variable type first before discussing more
  1451. complex types.
  1452. - Basic variable: The standard key = value variable.
  1453. - Simple list: A string that contains semicolon delimited fields.
  1454. {a;b;c}. Can be saved as a variable.
  1455. - Brace list: A string in which fields are delimited with braces.
  1456. {a}{b}{c}. Brace lists cannot be stored as a variable because tables
  1457. use braces as well, they must be stored as a simple list instead.
  1458. - Table: Think of this as variables nested within another variable. Or
  1459. as variables contained within another variable.
  1460. - List: A table that uses integers for its indexes. Also known as an
  1461. array. The #list command is a utility command for using tables as
  1462. arrays.
  1463. </span><span style='color:#5F5'>
  1464. Simple Variables
  1465. </span><span style='color:#AAA'>
  1466. </span><span style='color:#FFF'>Example:</span><span style='color:#AAA'>
  1467. #variable {simple} {Hello World!}
  1468. #show &dollar;simple
  1469. To see if the 'simple' variable exists you can use &amp;simple which will
  1470. display 0 if the variable does not exist, or the variable's index if
  1471. it exists.
  1472. If you have multiple variables they are sorted alphabetically and
  1473. numerically. While it's not all that relevant for simple variables,
  1474. the first variable has index 1, the second variable index 2, and so
  1475. on.
  1476. Variable names need to start with a letter and only exist of letters,
  1477. numbers, and underscores. If you need to use a non standard variable
  1478. name this is possible using braces.
  1479. </span><span style='color:#FFF'>Example: </span><span style='color:#AAA'>#variable {:)} {Happy Happy!};#show &dollar;{:)}
  1480. Variables can be accessed using their index. While primarily useful
  1481. for tables it is possible to do this for simple variables. Use +1 for
  1482. the first variable, +2 for the second variable, etc. Use -1 for the
  1483. last variable, -2 for the second last variable, etc.
  1484. </span><span style='color:#FFF'>Example:</span><span style='color:#AAA'> #show The first variable is: &dollar;{+1}
  1485. </span><span style='color:#5F5'>
  1486. Removing Variables
  1487. </span><span style='color:#AAA'>
  1488. To remove a variable, use #unvariable or #unvar (every command can be
  1489. abbreviated). It's possible to remove multiple variables at once
  1490. using #unvar {var 1} {var 2} {etc}
  1491. Variables are unique to each session, so if you have multiple
  1492. sessions, removing a variable from one session won't remove it from
  1493. other sessions.
  1494. If you remove a table variable, all variables contained within that
  1495. table variable are removed as well.
  1496. </span><span style='color:#5F5'>
  1497. Simple Lists
  1498. </span><span style='color:#AAA'>
  1499. A simple list is a string that contains semicolon delimited fields.
  1500. Commands can be entered as simple lists, for example:
  1501. #show {a};#show {b} will execute a single line as two commands.
  1502. Several commands take a simple list as their input, these are:
  1503. #foreach, #line substitute, #path load, #list create, and #highlight.
  1504. </span><span style='color:#5F5'>
  1505. Brace Lists
  1506. </span><span style='color:#AAA'>
  1507. A brace list is a string in which fields are delimited with braces.
  1508. Most commands take a brace list for their arguments, for example:
  1509. #session {x} {mud.com} {1234} {mud.tin}. The session command takes
  1510. 4 arguments, the 4th argument (command file) is optional.
  1511. Commands that take a simple list as their input will also accept a
  1512. brace list, keep in mind you'll have to embed the brace list in an
  1513. extra set of braces, for example: #path load {{n}{s}{w}{w}}, which is
  1514. identical to: #path load {n;s;w;w}.
  1515. Brace lists cannot be stored as variables because TinTin++ will
  1516. confuse them with tables. You can convert a brace list to a table
  1517. variable using: #list {bracelist} {create} {{a}{b}{c}} this will look
  1518. internally as: {{1}{a}{2}{b}{3}{c}}. You can then convert this table
  1519. to a simple list using: #list {bracelist} {simplify} {simplelist}
  1520. which will store {a;b;c} in the &dollar;simplelist variable.
  1521. Braces cannot easily be escaped in TinTin++. Using &bsol;{ or &bsol;} will not
  1522. work. The reason for this is due to several factors, but primarily
  1523. backward compatibility. To escape braces you must define them using
  1524. hexadecimal notation using &bsol;x7B and &bsol;x7D. See #help escape for a list
  1525. of escape options, and the help file will also remind you of how to
  1526. escape braces.
  1527. </span><span style='color:#5F5'>
  1528. Tables
  1529. </span><span style='color:#AAA'>
  1530. Tables are key/value pairs stored within a variable. Tables are also
  1531. known as associative arrays, dictionaries, maps, nested variables,
  1532. structures, and probably a couple of other names. There are several
  1533. ways to create and access tables.
  1534. </span><span style='color:#FFF'>Example:</span><span style='color:#AAA'> #variable {friendlist} {{bob}{bob@mail.com} {bubba}{sunset@gmail.com}}
  1535. This will create a friendlist with two entries, the key is the name of
  1536. the friend, the value is the email address of the friend. You can see
  1537. the email address of bob using: #show {&dollar;friendlist[bob]}. You can
  1538. also define this table as following:
  1539. </span><span style='color:#FFF'>Example:</span><span style='color:#AAA'>
  1540. #variable {friendlist[bob]} {bob@mail.com}
  1541. #variable {friendlist[bubba]} {sunset@gmail.com}
  1542. This would create the exact same table as the single line declaration
  1543. used previously. To see the first key in the table use:
  1544. *friendlist[+1], to see the first value in the table use:
  1545. &dollar;friendlist[+1]. To see the size of the table use &amp;friendlist[]. To
  1546. print a bracelist of all friends use *friendlist[%*], to print a
  1547. bracelist of all friends whose name starts with the letter 'a' you
  1548. would use: *friendlist[a%*]. Similarly to see the number of friends
  1549. you have whose name ends with the letter 'b' you would use:
  1550. &amp;friendlist[%*b].
  1551. See #help regexp for a brief overview of regular expression options.
  1552. While TinTin++ supports PCRE (perl-compatible regular expressions), it
  1553. embeds them within its own regular expression syntax that is simpler
  1554. and less invasive, while still allowing the full power of PCRE for
  1555. those who need it.
  1556. </span><span style='color:#FFF'>Example:</span><span style='color:#AAA'> #unvariable {friendlist[bubba]}
  1557. This would remove {bubba} from the friendlist. To remove the entire
  1558. friendlist you would use: #unvariable {friendlist}.
  1559. </span><span style='color:#FFF'>Example:</span><span style='color:#AAA'> #variable {friendlist} {{bob} {{email}{bob@ma.il} {phone}{123456789}}}
  1560. There is no limit to the number of nests, simply add more braces. To
  1561. see Bob's email in this example you would use:
  1562. #show {&dollar;friendlist[bob][email]}.
  1563. Lists
  1564. Tables are sorted alphabetically with the exception of numbers which
  1565. are sorted numerically. If you want to determine the sorting order
  1566. yourself you can use use the #list command which helps you to use
  1567. tables as arrays.
  1568. </span><span style='color:#FFF'>Example:</span><span style='color:#AAA'> #action {%1 chats %2} {#list chats add {%0}}
  1569. Each time a chat is received it's added to the end of the 'chats' list
  1570. variable. If you type #variable chats this might look like:
  1571. </span><span style='color:#FF5'>#</span><span style='color:#5FF'>VARIABLE </span><span style='color:#A0A'>{</span><span style='color:#FFF'>chats</span><span style='color:#A0A'>}
  1572. {
  1573. {</span><span style='color:#FFF'>1</span><span style='color:#A0A'>} {</span><span style='color:#FFF'>Bubba chats Hi</span><span style='color:#A0A'>}
  1574. {</span><span style='color:#FFF'>2</span><span style='color:#A0A'>} {</span><span style='color:#FFF'>Bob chats Hi bub</span><span style='color:#A0A'>}
  1575. {</span><span style='color:#FFF'>3</span><span style='color:#A0A'>} {</span><span style='color:#FFF'>Bubba chats Bye</span><span style='color:#A0A'>}
  1576. {</span><span style='color:#FFF'>4</span><span style='color:#A0A'>} {</span><span style='color:#FFF'>Bob chats bub bye</span><span style='color:#A0A'>}
  1577. }
  1578. </span><span style='color:#5F5'>
  1579. Parsing
  1580. </span><span style='color:#AAA'>
  1581. There are various ways to parse lists and tables, using either #loop,
  1582. #foreach, #while, or #&lt;number&gt;.
  1583. #loop takes two numeric arguments, incrementing or decrementing the
  1584. first number until it matches the second number. The value of the loop
  1585. counter is stored in the provided variable.
  1586. #foreach takes either a simple list or a brace list as its first
  1587. argument. Foreach will go through each item in the list and store the
  1588. value in the provided variable.
  1589. #while will perform an if check on the first argument, if the result
  1590. is true it will execute the commands in the second argument. Then it
  1591. performs an if check on the first argument again. It will continue to
  1592. repeat until the if check returns 0 or the loop is interrupted with a
  1593. control flow command. It takes special care to avoid infinite loops.
  1594. #&lt;number&gt; will execute the provided argument 'number' times. For
  1595. example: #4 {#show beep! &bsol;a}
  1596. Here are some examples.
  1597. </span><span style='color:#FFF'>Example:</span><span style='color:#AAA'> #list friends create {bob;bubba;zorro}
  1598. Internally this looks like {{1}{bob}{2}{bubba}{3}{zorro}} and the
  1599. list can be parsed in various ways.
  1600. </span><span style='color:#FFF'>Example:</span><span style='color:#AAA'> #foreach {&dollar;friends[%*]} {name} {#show &dollar;name}
  1601. </span><span style='color:#FFF'>Example:</span><span style='color:#AAA'> #foreach {*friends[%*]} {i} {#show &dollar;friends[&dollar;i]}
  1602. </span><span style='color:#FFF'>Example:</span><span style='color:#AAA'> #loop {1} {&amp;friends[]} {i} {#show &dollar;friends[+&dollar;i]}
  1603. </span><span style='color:#FFF'>Example:</span><span style='color:#AAA'> #math i 1;#while {&amp;friends[+&dollar;i]} {#show &dollar;friends[+&dollar;i];
  1604. #math i &dollar;i + 1}
  1605. </span><span style='color:#FFF'>Example:</span><span style='color:#AAA'> #math i 1;#&amp;friends[] {#show &dollar;friends[+&dollar;i];#math i &dollar;i + 1}
  1606. Each of the five examples above performs the same task; printing the
  1607. three names in the friends list.
  1608. If you want to get a better look at what goes on behind the scenes
  1609. while executing scripts you can use '#debug all on'. To stop seeing
  1610. debug information use '#debug all off'.
  1611. </span><span style='color:#5F5'>
  1612. Optimization
  1613. </span><span style='color:#AAA'>
  1614. TinTin++ tables are exceptionally fast while they remain under 100
  1615. items. Once a table grows beyond 10000 items there can be performance
  1616. issues when inserting and removing items in the beginning or middle of
  1617. the table.
  1618. The plan is to eventually implement an indexable and flexible data
  1619. structure for large tables.
  1620. If you load a large table from file it's important to make sure it's
  1621. sorted, when using #write to save a table it's automatically sorted.
  1622. If you notice performance issues on large tables it's relatively easy
  1623. to create a hash table.
  1624. </span><span style='color:#FFF'>Example:</span><span style='color:#AAA'>
  1625. #alias {sethash}
  1626. {
  1627. #format hash %H %1;
  1628. #math hash1 &dollar;hash % 100;
  1629. #math hash2 &dollar;hash / 100 % 100;
  1630. #var hashtable[&dollar;hash1][&dollar;hash2][%1] %2
  1631. }
  1632. #function {gethash}
  1633. {
  1634. #format hash %H %1;
  1635. #math hash1 &dollar;hash % 100;
  1636. #math hash2 &dollar;hash / 100 % 100;
  1637. #return &dollar;hashtable[&dollar;hash1][&dollar;hash2][%1]
  1638. }
  1639. #alias {test}
  1640. {
  1641. sethash bli hey;
  1642. sethash bla hi;
  1643. sethash blo hello;
  1644. #show The value of bla is: @gethash{bla}
  1645. }
  1646. The above script will rapidly store and retrieve over 1 million items.
  1647. Looping through a hash table is relatively easy as well.
  1648. </span><span style='color:#FFF'>Example:</span><span style='color:#AAA'>
  1649. #alias {showhash}
  1650. {
  1651. #foreach {*hashtable[%*]} {hash1}
  1652. {
  1653. #foreach {*hashtable[&dollar;hash1][%*]} {hash2}
  1654. {
  1655. #echo {%-20s = %s}
  1656. {hashtable[&dollar;hash1][&dollar;hash2]}
  1657. {&dollar;hashtable[&dollar;hash1][&dollar;hash2]}
  1658. }
  1659. }
  1660. }
  1661. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#BREAK'>break</a>, <a href='#CONTINUE'>continue</a>, <a href='#FOREACH'>foreach</a>, <a href='#LOOP'>loop</a>, <a href='#PARSE'>parse</a>, <a href='#REPEAT'>repeat</a>, <a href='#RETURN'>return</a> and <a href='#WHILE'>while</a>.
  1662. <a name='LOCAL'></a>
  1663. </span><span style='color:#5F5'> LOCAL
  1664. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #local </span><span style='color:#FFF'>{</span><span style='color:#AAA'>variable name</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>text to fill variable</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1665. The local command sets a local variable. Unlike a regular variable
  1666. a local variable will only stay in memory for the duration of the
  1667. event that created it. They are accessed in the same way as a
  1668. regular variable.
  1669. Commands that store information to a variable will use a local variable
  1670. if it exists.
  1671. Avoid setting the result variable as local in a function.
  1672. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #alias {swap} {#local x %0;#replace x {e} {u};#show &dollar;x}
  1673. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#FORMAT'>format</a>, <a href='#FUNCTION'>function</a>, <a href='#MATH'>math</a>, <a href='#REPLACE'>replace</a>, <a href='#SCRIPT'>script</a> and <a href='#VARIABLE'>variable</a>.
  1674. <a name='LOG'></a>
  1675. </span><span style='color:#5F5'> LOG
  1676. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #log </span><span style='color:#FFF'>{</span><span style='color:#AAA'>append</span><span style='color:#FFF'>|</span><span style='color:#AAA'>overwrite</span><span style='color:#FFF'>|</span><span style='color:#AAA'>off</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>[filename]</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1677. Logs session output to a file, you can set the data type to either
  1678. plain, raw, or html with the config command.
  1679. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#READ'>read</a>, <a href='#SCAN'>scan</a>, <a href='#TEXTIN'>textin</a> and <a href='#WRITE'>write</a>.
  1680. <a name='LOOP'></a>
  1681. </span><span style='color:#5F5'> LOOP
  1682. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #loop </span><span style='color:#FFF'>{</span><span style='color:#AAA'>&lt;start&gt;</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>&lt;finish&gt;</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>&lt;variable&gt;</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>commands</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1683. Like a for statement, loop will loop from start to finish incrementing
  1684. or decrementing by 1 each time through. The value of the loop counter
  1685. is stored in the provided variable, which you can use in the commands.
  1686. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #loop 1 3 loop {get all &dollar;loop.corpse}
  1687. This equals 'get all 1.corpse;get all 2.corpse;get all 3.corpse'.
  1688. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #loop 3 1 cnt {drop &dollar;cnt&bsol;.key}
  1689. This equals 'drop 3.key;drop 2.key;drop 1.key'.
  1690. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#BREAK'>break</a>, <a href='#CONTINUE'>continue</a>, <a href='#FOREACH'>foreach</a>, <a href='#LIST'>list</a>, <a href='#PARSE'>parse</a>, <a href='#REPEAT'>repeat</a>, <a href='#RETURN'>return</a> and <a href='#WHILE'>while</a>.
  1691. <a name='MACRO'></a>
  1692. </span><span style='color:#5F5'> MACRO
  1693. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #macro </span><span style='color:#FFF'>{</span><span style='color:#AAA'>key sequence</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>commands</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  1694. Macros allow you to make tintin respond to function keys.
  1695. The key sequence send to the terminal when pressing a function key
  1696. differs for every OS and terminal. To find out what sequence is send
  1697. you can enable the CONVERT META config option.
  1698. Another option is pressing ctrl-v, which will enable CONVERT META for
  1699. the next key pressed.
  1700. If you only want a key sequence to trigger at the start of an input
  1701. line prefix the key sequence with ^.
  1702. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #macro {(press ctrl-v)(press F1)} {#show &bsol;e[2J;#buffer lock}
  1703. Clear the screen and lock the window when you press F1, useful when the
  1704. boss is near.
  1705. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #macro {&bsol;eOM} {#cursor enter}
  1706. Makes the keypad's enter key work as an enter in keypad mode.
  1707. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #macro {^nn} {n}
  1708. Makes pressing n twice on an empty line execute north.
  1709. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: Not all terminals properly initialize the keypad key sequences.
  1710. If this is the case you can still use the keypad, but instead of the
  1711. arrow keys use ctrl b, f, p, and n.
  1712. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: You can remove a macro with the #unmacro command.
  1713. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#ALIAS'>alias</a>, <a href='#CURSOR'>cursor</a>, <a href='#HISTORY'>history</a>, <a href='#KEYPAD'>keypad</a>, <a href='#SPEEDWALK'>speedwalk</a> and <a href='#TAB'>tab</a>.
  1714. <a name='MAP'></a>
  1715. </span><span style='color:#5F5'> MAP
  1716. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #map
  1717. The map command is the backbone of the auto mapping feature.
  1718. </span><span style='color:#FFF'>#map at &lt;exit|vnum&gt; &lt;command&gt;
  1719. </span><span style='color:#AAA'> Execute the command at the given exit or vnum.
  1720. </span><span style='color:#FFF'>#map center &lt;x&gt; &lt;y&gt; &lt;z&gt;
  1721. </span><span style='color:#AAA'> Sets displaying center of the map viewer, default is 0 0 0.
  1722. </span><span style='color:#FFF'>#map color &lt;field&gt; [value]
  1723. </span><span style='color:#AAA'> Sets the map color for the given color field.
  1724. </span><span style='color:#FFF'>#map create &lt;size&gt;
  1725. </span><span style='color:#AAA'> Creates a new map and room 1. The default size is 50000 rooms.
  1726. </span><span style='color:#FFF'>#map destroy {area|world} &lt;name&gt;
  1727. </span><span style='color:#AAA'> Deletes the map or given area.
  1728. </span><span style='color:#FFF'>#map delete &lt;exit|vnum&gt;
  1729. </span><span style='color:#AAA'> Deletes the room for the given exit or vnum.
  1730. </span><span style='color:#FFF'>#map dig &lt;exit|vnum&gt; [new|&lt;vnum&gt;]
  1731. </span><span style='color:#AAA'> Creates an exit for the given exit name. If no valid exit name
  1732. is given or no existing room is found a new room is created.
  1733. Useful for portal links and other alternative forms of
  1734. transportation. If the 'new' argument is provided all existing
  1735. rooms are ignored and a new room is created. If a room vnum is
  1736. given as the second argument an exit will be created leading
  1737. to the given room vnum. If the room vnum doesn't exist a new
  1738. room is created.
  1739. </span><span style='color:#FFF'>#map entrance &lt;exit&gt; [option] [arg]
  1740. </span><span style='color:#AAA'> Set the entrance data for the given exit. You must specify a
  1741. valid two-way exit for this to work.
  1742. </span><span style='color:#FFF'>#map exit &lt;exit&gt; &lt;option&gt; &lt;arg&gt;
  1743. </span><span style='color:#AAA'> Set the exit data. Useful with a closed door where you can
  1744. set the exit command: '#map exit e command {open east;e}'.
  1745. Use #map exit &lt;exit&gt; for a list of available options.
  1746. Use #map exit &lt;eixt&gt; save to save the exit data.
  1747. </span><span style='color:#FFF'>#map exitflag &lt;exit&gt; &lt;AVOID|BLOCK|HIDE|INVIS&gt; [on|off]
  1748. </span><span style='color:#AAA'> Set exit flags. See #map roomflag for more info.
  1749. </span><span style='color:#FFF'>#map explore &lt;exit&gt;
  1750. </span><span style='color:#AAA'> Explores the given exit until a dead end or an
  1751. intersection is found. The route is stored in #path and can
  1752. subsequently be used with #walk. Useful for long roads.
  1753. </span><span style='color:#FFF'>#map find &lt;name&gt; &lt;exits&gt; &lt;desc&gt; &lt;area&gt; &lt;note&gt; &lt;terrain&gt; &lt;flag&gt;
  1754. </span><span style='color:#AAA'> searches for the given room name. If found the shortest path
  1755. from your current location to the destination is calculated.
  1756. The route is stored in #path and can subsequently be used with
  1757. the various #path commands. If &lt;exits&gt; is provided all exits
  1758. must be matched, if &lt;roomdesc&gt;, &lt;roomarea&gt; or &lt;roomnote&gt; or
  1759. &lt;roomterrain&gt; or &lt;roomflag&gt; is provided these are matched as
  1760. well against the room to be found.
  1761. These options are also available to the at, delete, goto
  1762. link, list and run commands.
  1763. </span><span style='color:#FFF'>#map flag asciigraphics
  1764. </span><span style='color:#AAA'> Takes up more space but draws a more detailed
  1765. map that displays the ne se sw nw exits and room symbols.
  1766. </span><span style='color:#FFF'>#map flag asciivnums
  1767. </span><span style='color:#AAA'> Display room vnums if asciigraphics is enabled.
  1768. </span><span style='color:#FFF'>#map flag nofollow
  1769. </span><span style='color:#AAA'> When you enter movement commands the map will no longer
  1770. automatically follow along. Useful for MSDP and GMCP
  1771. automapping scripts.
  1772. </span><span style='color:#FFF'>#map flag static
  1773. </span><span style='color:#AAA'> Will make the map static so new rooms are no longer
  1774. created when walking into an unmapped direction. Useful when
  1775. you're done mapping and regularly bump into walls accidentally
  1776. creating a new room. #map dig etc will still work.
  1777. </span><span style='color:#FFF'>#map flag vtgraphics
  1778. </span><span style='color:#AAA'> Enables vt line drawing on some terminals
  1779. </span><span style='color:#FFF'>#map flag vtmap
  1780. </span><span style='color:#AAA'> Will enable the vtmap which is shown in the top split
  1781. screen if you have one. You can create a 16 rows high top
  1782. screen by using '#split 16 1'.
  1783. </span><span style='color:#FFF'>#map get &lt;option&gt; &lt;variable&gt; [vnum]
  1784. </span><span style='color:#AAA'> Store a map value into a variable, if no vnum is given the
  1785. current room is used. Use 'all' as the option to store all
  1786. values as a table.
  1787. </span><span style='color:#FFF'>#map get roomexits &lt;variable&gt;
  1788. </span><span style='color:#AAA'> Store all room exits into variable.
  1789. </span><span style='color:#FFF'>#map global &lt;room vnum&gt;
  1790. </span><span style='color:#AAA'> Set the vnum of a room that contains global
  1791. exits, for example an exit named 'recall' that leads to the
  1792. recall location. The room can contain multiple exits, in case
  1793. there are multiple commands that are similar to recall.
  1794. </span><span style='color:#FFF'>#map goto &lt;room vnum&gt; [dig]
  1795. </span><span style='color:#AAA'> Takes you to the given room vnum, with the
  1796. dig argument a new room will be created if none exists.
  1797. </span><span style='color:#FFF'>#map goto &lt;name&gt; &lt;exits&gt; &lt;desc&gt; &lt;area&gt; &lt;note&gt; &lt;terrain&gt;
  1798. </span><span style='color:#AAA'> Takes you to the given room name, if you provide exits those
  1799. must match.
  1800. </span><span style='color:#FFF'>#map info
  1801. </span><span style='color:#AAA'> Gives information about the map and room you are in.
  1802. </span><span style='color:#FFF'>#map insert &lt;direction&gt; [roomflag]
  1803. </span><span style='color:#AAA'> Insert a room in the given direction. Most useful for inserting
  1804. void rooms.
  1805. </span><span style='color:#FFF'>#map jump &lt;x&gt; &lt;y&gt; &lt;z&gt;
  1806. </span><span style='color:#AAA'> Jump to the given coordinate, which is relative
  1807. to your current room.
  1808. </span><span style='color:#FFF'>#map landmark &lt;name&gt; &lt;vnum&gt; [description] [size]
  1809. </span><span style='color:#AAA'> Creates an alias to target the provided room vnum. The
  1810. description is optional and should be brief. The size
  1811. determines from how many rooms away the landmark can be
  1812. seen.
  1813. </span><span style='color:#FFF'>#map leave
  1814. </span><span style='color:#AAA'> Makes you leave the map. Useful when entering a maze. You
  1815. can return to your last known room using #map return.
  1816. </span><span style='color:#FFF'>#map legend &lt;legend&gt; [symbols|reset]
  1817. #map legend &lt;legend&gt; &lt;index&gt; [symbol]
  1818. </span><span style='color:#AAA'> There are several legends and sub-legends available for
  1819. drawing maps to suit personal preference and character sets.
  1820. Use #map legend all to see the legend as currently defined.
  1821. Use #map legend &lt;legend&gt; &lt;reset&gt; to set the default legend.
  1822. Use #map legend &lt;legend&gt; &lt;character list&gt; to create a custom
  1823. legend. Custom legends are automatically saved and loaded by
  1824. using #map read and #map write.
  1825. </span><span style='color:#FFF'>#map link &lt;direction&gt; &lt;room name&gt; [both]
  1826. </span><span style='color:#AAA'> Links two rooms. If the both
  1827. argument and a valid direction is given the link is two ways.
  1828. </span><span style='color:#FFF'>#map list &lt;name&gt; &lt;exits&gt; &lt;desc&gt; &lt;area&gt; &lt;note&gt; &lt;terrain&gt;
  1829. </span><span style='color:#AAA'> Lists all matching rooms and their distance. The following
  1830. search keywords are supported.
  1831. {roomarea} &lt;arg&gt; will list rooms with matching area name.
  1832. {roomdesc} &lt;arg&gt; will list rooms with matching room desc.
  1833. {roomexits} &lt;arg&gt; will list rooms with identical room exits.
  1834. {roomflag} &lt;arg&gt; will list rooms with matching room flags.
  1835. {roomid} &lt;arg&gt; will list rooms with identical id name.
  1836. {roomname} &lt;arg&gt; will list rooms with matching room name.
  1837. {roomnote} &lt;arg&gt; will list rooms with matching room note.
  1838. {roomterrain} &lt;arg&gt; will list rooms with matching room terrain.
  1839. {variable} &lt;arg&gt; will save the output to given variable.
  1840. </span><span style='color:#FFF'>#map map &lt;rows&gt; &lt;cols&gt; &lt;append|overwrite|list|variable&gt; &lt;name&gt;
  1841. </span><span style='color:#AAA'> Display a drawing of the map of the given height and width.
  1842. All arguments are optional. If {rows} or {cols} are set to {}
  1843. or {0} they will use the scrolling window size as the default.
  1844. If {rows} or {cols} are a negative number this number is
  1845. subtracted from the scrolling window size.
  1846. </span><span style='color:#FFF'>#map map &lt;rows&gt; &lt;cols&gt; draw &lt;square&gt;
  1847. </span><span style='color:#AAA'> Display a drawing of the map of the given height and width.
  1848. The square argument exists of 4 numbers formulating the top
  1849. left corner and bottom right corner of a square.
  1850. If you use {append|overwrite} the map is written to the specified
  1851. file name which must be given as the 4th argument.
  1852. If you use {list|variable} the map is saved to the specified
  1853. variable name.
  1854. </span><span style='color:#FFF'>#map move &lt;direction&gt;
  1855. </span><span style='color:#AAA'> This does the same as an actual movement
  1856. command, updating your location on the map and creating new
  1857. rooms. Useful when you are following someone and want the map
  1858. to follow. You will need to create actions using '#map move',
  1859. for this to work.
  1860. </span><span style='color:#FFF'>#map offset &lt;row&gt; &lt;col&gt; &lt;row&gt; &lt;col&gt;
  1861. </span><span style='color:#AAA'> Define the offset of the vtmap as a square. Without an argument
  1862. it defaults to the entire top split region.
  1863. </span><span style='color:#FFF'>#map read &lt;filename&gt;
  1864. </span><span style='color:#AAA'> Will load the given map file.
  1865. </span><span style='color:#FFF'>#map resize &lt;size&gt;
  1866. </span><span style='color:#AAA'> Resize the map, setting the maximum number of rooms.
  1867. </span><span style='color:#FFF'>#map return
  1868. </span><span style='color:#AAA'> Returns you to your last known room after leaving the map
  1869. or loading a map.
  1870. </span><span style='color:#FFF'>#map roomflag &lt;flags&gt; &lt;get|on|off&gt;
  1871. </span><span style='color:#AAA'>
  1872. </span><span style='color:#FFF'>#map roomflag avoid
  1873. </span><span style='color:#AAA'> When set, '#map find' will avoid a route leading
  1874. through that room. Useful for locked doors, etc.
  1875. </span><span style='color:#FFF'>#map roomflag block
  1876. </span><span style='color:#AAA'> When set the automapper will prevent movement into or through
  1877. the room. Useful for death traps.
  1878. </span><span style='color:#FFF'>#map roomflag hide
  1879. </span><span style='color:#AAA'> When set, '#map' will not display the map beyond
  1880. this room. When mapping overlapping areas or areas that aren't
  1881. build consistently you need this flag as well to stop
  1882. auto-linking, unless you use void rooms.
  1883. </span><span style='color:#FFF'>#map roomflag invis
  1884. </span><span style='color:#AAA'> When set the room will be colored with the INVIS color.
  1885. </span><span style='color:#FFF'>#map roomflag leave
  1886. </span><span style='color:#AAA'> When entering a room with this flag, you will
  1887. automatically leave the map. Useful when set at the entrance
  1888. of an unmappable maze.
  1889. </span><span style='color:#FFF'>#map roomflag noglobal
  1890. </span><span style='color:#AAA'> This marks a room as not allowing global
  1891. transportation, like norecall rooms that block recall.
  1892. </span><span style='color:#FFF'>#map roomflag void
  1893. </span><span style='color:#AAA'> When set the room becomes a spacing room that can
  1894. be used to connect otherwise overlapping areas. A void room
  1895. should only have two exits. When entering a void room you are
  1896. moved to the connecting room until you enter a non void room.
  1897. </span><span style='color:#FFF'>#map roomflag static
  1898. </span><span style='color:#AAA'> When set the room will no longer be autolinked
  1899. when walking around. Useful for mapping mazes.
  1900. </span><span style='color:#FFF'>#map run &lt;room name&gt; [delay]
  1901. </span><span style='color:#AAA'> Calculates the shortest path to the destination and walks you
  1902. there. The delay is optional and requires using braces. Besides
  1903. the room name a list of exits can be provided for more precise
  1904. matching.
  1905. </span><span style='color:#FFF'>#map set &lt;option&gt; &lt;value&gt; [vnum]
  1906. </span><span style='color:#AAA'> Set a map value for your current room, or given room if a room
  1907. vnum is provided.
  1908. </span><span style='color:#FFF'>#map sync &lt;filename&gt;
  1909. </span><span style='color:#AAA'> Similar to #map read except the current map won't be unloaded
  1910. or overwritten.
  1911. </span><span style='color:#FFF'>#map terrain &lt;name&gt; &lt;symbol&gt; [flag]
  1912. </span><span style='color:#AAA'> Set the terrain symbol and flag.
  1913. </span><span style='color:#FFF'>#map terrain &lt;name&gt; &lt;symbol&gt; [DENSE|SPARSE|SCANT]
  1914. </span><span style='color:#AAA'> Determine symbol density, omit for the default.
  1915. </span><span style='color:#FFF'>#map terrain &lt;name&gt; &lt;symbol&gt; [NARROW|WIDE|VAST]
  1916. </span><span style='color:#AAA'> Determine symbol spread range, omit for the default.
  1917. </span><span style='color:#FFF'>#map terrain &lt;name&gt; &lt;symbol&gt; [FADEIN|FADEOUT]
  1918. </span><span style='color:#AAA'> Determine symbol spread density, omit for the default.
  1919. </span><span style='color:#FFF'>#map terrain &lt;name&gt; &lt;symbol&gt; [DOUBLE]
  1920. </span><span style='color:#AAA'> You're using two characters for the symbol.
  1921. </span><span style='color:#FFF'>#map travel &lt;direction&gt; &lt;delay&gt;
  1922. </span><span style='color:#AAA'> Follows the direction until a dead end or an intersection is
  1923. found. Use braces around the direction if you use the delay,
  1924. which will add the given delay between movements.
  1925. Use #path stop to stop a delayed run.
  1926. </span><span style='color:#FFF'>#map undo
  1927. </span><span style='color:#AAA'> Will undo your last move. If this created a room or a link
  1928. they will be deleted, otherwise you'll simply move back a
  1929. room. Useful if you walked into a non existant direction.
  1930. </span><span style='color:#FFF'>#map uninsert &lt;direction&gt;
  1931. </span><span style='color:#AAA'> Exact opposite of the insert command.
  1932. </span><span style='color:#FFF'>#map unlandmark &lt;name&gt;
  1933. </span><span style='color:#AAA'> Removes a landmark.
  1934. </span><span style='color:#FFF'>#map unlink &lt;direction&gt; [both]
  1935. </span><span style='color:#AAA'> Will remove the exit, this isn't two way so you can have the
  1936. properly display no exit rooms and mazes.
  1937. If you use the both argument the exit is removed two-ways.
  1938. </span><span style='color:#FFF'>#map unterrain &lt;name&gt;
  1939. </span><span style='color:#AAA'> Removes a terrain.
  1940. </span><span style='color:#FFF'>#map update [now]
  1941. </span><span style='color:#AAA'> Sets the vtmap to update within the next 0.1 seconds, or
  1942. instantly with the now argument.
  1943. </span><span style='color:#FFF'>#map vnum &lt;low&gt; [high]
  1944. </span><span style='color:#AAA'> Change the room vnum to the given number, if a range is
  1945. provided the first available room in that range is selected.
  1946. </span><span style='color:#FFF'>#map write &lt;filename&gt; [force]
  1947. </span><span style='color:#AAA'> Will save the map, if you want to save a map to a .tin file
  1948. you must provide the {force} argument.
  1949. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#PATH'>path</a> and <a href='#PATHDIR'>pathdir</a>.
  1950. <a name='MAPPING'></a>
  1951. </span><span style='color:#5F5'> MAPPING
  1952. </span><span style='color:#AAA'>
  1953. TinTin++ has a powerful automapper that uses a room system similar to
  1954. Diku MUDs which means that odd map layouts and weird exit
  1955. configurations aren't a problem. The mapper provides tools to improve
  1956. the visual map display. For basic path tracking see #help PATH.
  1957. </span><span style='color:#FFF'> #map create [size]
  1958. </span><span style='color:#AAA'>
  1959. This command creates the initial map. The size is 50,000 by default
  1960. and can be changed at any time with the #map resize command. If you
  1961. play a MUD that uses MSDP or GMCP to provide room numbers you'll have
  1962. to increase it to the highest reported room number. Increasing the
  1963. size of the map doesn't decrease performance.
  1964. </span><span style='color:#FFF'> #map goto &lt;location&gt;
  1965. </span><span style='color:#AAA'>
  1966. When you create the map you are not automatically inside the map. By
  1967. default room number (vnum) 1 is created, so you can go to it using
  1968. #map goto 1. Once you are inside the map new rooms are automatically
  1969. created as you move around. Movement commands are defined with the
  1970. pathdir command. By default n, ne, e, se, s, sw, w, nw, u, d are
  1971. defined.
  1972. </span><span style='color:#FFF'>
  1973. #map map &lt;rows&gt; &lt;cols&gt; &lt;append|overwrite|list|variable&gt; &lt;name&gt;
  1974. </span><span style='color:#AAA'>
  1975. To see the map you can use #map map. It's annoying to have to
  1976. constantly type #map map however. Instead it's possible to use #split
  1977. to display a vt100 map. To do so execute:
  1978. </span><span style='color:#FFF'>#split 16 1
  1979. #map flag vtmap on</span><span style='color:#AAA'>
  1980. The first command sets the top split lines to 16 and the bottom split
  1981. line to 1. If you want a smaller or larger map display you can use a
  1982. different value than 16.
  1983. If you don't need to display diagonal exits and prefer a more compact
  1984. look you can use #map flag AsciiGraphics off. This will enable the
  1985. standard display which uses UTF-8 box drawing characters, results may
  1986. vary depending on the font used.
  1987. If your terminal supports UTF-8 you can also give #Map flag unicode on
  1988. a try.
  1989. If you want to display the map in a different location of the screen
  1990. use something like:
  1991. </span><span style='color:#FFF'>#split 0 1 0 -80
  1992. #map offset 1 81 -4 -1</span><span style='color:#AAA'>
  1993. This will display the map on the right side of the screen, if the
  1994. width of the screen is wide enough.
  1995. </span><span style='color:#FFF'>
  1996. #map undo
  1997. </span><span style='color:#AAA'>
  1998. If you accidentally walk into the wall on your MUD the mapper will
  1999. still create a new room. You can easily fix this mistake by using
  2000. #map undo. If you want to move around on the map without moving around
  2001. on the MUD you can use: #map move {direction}. To delete a room
  2002. manually you can use: #map delete {direction}. To create a room
  2003. manually you can use: #map dig {direction}.
  2004. </span><span style='color:#FFF'>
  2005. #map write &lt;filename&gt;
  2006. </span><span style='color:#AAA'>
  2007. You can save your map using #map write, to load a map you can use
  2008. #map read &lt;filename&gt;.
  2009. </span><span style='color:#FFF'>
  2010. #map set &lt;option&gt; &lt;value&gt;
  2011. </span><span style='color:#AAA'>
  2012. You can set the room name using #map set roomname &lt;name&gt;. You either
  2013. have to do this manually or create triggers to set the room name
  2014. automatically. Once the room name is set you can use #map goto with
  2015. the room name to visit it. If there are two rooms with the same name
  2016. #map goto will go to the most nearby room. If you want to always go
  2017. to the same room you should memorize the room number. You can further
  2018. narrow down the matches by providing additional arguments, for example:
  2019. </span><span style='color:#FFF'>
  2020. #map goto {dark alley} {roomexits} {n;e} {roomarea} {Haddock Ville}
  2021. </span><span style='color:#AAA'>
  2022. You can set the room weight using #map set roomweight {value}. The
  2023. weight by default is set to 1.0 and it represents the difficulty of
  2024. traversing the room. If you have a lake as an alternative route, and
  2025. traversing water rooms is 4 times slower than regular rooms, then you
  2026. could set the weight of the lake rooms to 4.0. If the lake is 3 rooms
  2027. wide the total weight is 12. If walking around the lake has a weight
  2028. less than 12 the mapper will go around the lake, if the weight is
  2029. greater than 12 the mapper will take a route through the lake.
  2030. You can set the room symbol using #map set roomsymbol {value}. The
  2031. symbol should be one, two, or three characters, which can be
  2032. colorized. You can for example mark shops with an 'S' and colorize the
  2033. 'S' depending on what type of shop it is.
  2034. </span><span style='color:#FFF'>
  2035. #map run &lt;location&gt; &lt;delay&gt;
  2036. </span><span style='color:#AAA'>
  2037. The run command will have tintin find the shortest path to the given
  2038. location and execute the movement commands to get there. You can
  2039. provide a delay in seconds with floating point precision, for example:
  2040. </span><span style='color:#FFF'>#map run {dark alley} {0.5}</span><span style='color:#AAA'>
  2041. </span><span style='color:#FFF'>
  2042. #map insert {direction} {flag}
  2043. </span><span style='color:#AAA'>
  2044. The insert command is useful for adding spacer rooms called void rooms.
  2045. Often rooms overlap, and by adding void rooms you can stretch out
  2046. exits. For example: #map insert north void. You cannot enter void rooms
  2047. once they've been created, so you'll have to use #map info in an
  2048. adjacent room to find the room vnum, then use #map goto {vnum} to
  2049. visit.
  2050. It's also possible to align rooms using void rooms. This is easily
  2051. done using #map insert north void.
  2052. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#MAP'>map</a>, <a href='#PATH'>path</a> and <a href='#PATHDIR'>pathdir</a>.
  2053. <a name='MATH'></a>
  2054. </span><span style='color:#5F5'> MATH
  2055. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #math </span><span style='color:#FFF'>{</span><span style='color:#AAA'>variable</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>expression</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2056. Performs math operations and stores the result in a variable. The math
  2057. follows a C-like precedence, as follows, with the top of the list
  2058. having the highest priority.
  2059. Operators Priority Function
  2060. ------------------------------------------------
  2061. ! 0 logical not
  2062. ~ 0 bitwise not
  2063. * 1 integer multiply
  2064. ** 1 integer power
  2065. / 1 integer divide
  2066. // 1 integer sqrt // 2 or cbrt // 3
  2067. % 1 integer modulo
  2068. d 1 integer random dice roll
  2069. + 2 integer addition
  2070. - 2 integer subtraction
  2071. &lt;&lt; 3 bitwise shift
  2072. &gt;&gt; 3 bitwise shift
  2073. .. 3 bitwise ellipsis
  2074. &gt; 4 logical greater than
  2075. &gt;= 4 logical greater than or equal
  2076. &lt; 4 logical less than
  2077. &lt;= 4 logical less than or equal
  2078. == 5 logical equal (can use regex)
  2079. === 5 logical equal (never regex)
  2080. != 5 logical not equal (can use regex)
  2081. !== 5 logical not equal (never regex)
  2082. &amp; 6 bitwise and
  2083. ^ 7 bitwise xor
  2084. | 8 bitwise or
  2085. &amp;&amp; 9 logical and
  2086. ^^ 10 logical xor
  2087. || 11 logical or
  2088. True is any non-zero number, and False is zero. Parentheses () have
  2089. highest precedence, so inside the () is always evaluated first.
  2090. Strings must be enclosed in { } and use regex with == and !=,
  2091. in the case of &lt;= and &gt;= the alphabetic order is compared.
  2092. The #if and #switch commands use #math. Several commands accepting
  2093. integer input allow math operations as well.
  2094. Floating point precision is added by using the decimal . operator.
  2095. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #math {heals} {&dollar;mana / 40}
  2096. Assuming there is a variable &dollar;mana, divides its value by 40 and stores
  2097. the result in &dollar;heals.
  2098. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #action {^You receive %0 experience} {updatexp %0}
  2099. #alias updatexp {#math {xpneed} {&dollar;xpneed - %0}
  2100. Let's say you have a variable which stores xp needed for your next
  2101. level. The above will modify that variable after every kill, showing
  2102. the amount still needed.
  2103. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #action {%0 tells %1}
  2104. {#if {{%0} == {Bubba} &amp;&amp; &dollar;afk} {reply I'm away, my friend.}}
  2105. When you are away from keyboard, it will only reply to your friend.
  2106. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CAT'>cat</a>, <a href='#FORMAT'>format</a>, <a href='#FUNCTION'>function</a>, <a href='#LOCAL'>local</a>, <a href='#MATHEMATICS'>mathematics</a>, <a href='#REPLACE'>replace</a>, <a href='#SCRIPT'>script</a> and <a href='#VARIABLE'>variable</a>.
  2107. <a name='MATHEMATICS'></a>
  2108. </span><span style='color:#5F5'> MATHEMATICS
  2109. </span><span style='color:#FFF'>Number operations
  2110. </span><span style='color:#AAA'> Operators Priority Function
  2111. ------------------------------------------------
  2112. ! 0 logical not
  2113. ~ 0 bitwise not
  2114. * 1 integer multiply
  2115. ** 1 integer power
  2116. / 1 integer divide
  2117. // 1 integer sqrt // 2 or cbrt // 3
  2118. % 1 integer modulo
  2119. d 1 integer random dice roll
  2120. + 2 integer addition
  2121. - 2 integer subtraction
  2122. &lt;&lt; 3 bitwise shift
  2123. &gt;&gt; 3 bitwise shift
  2124. &gt; 4 logical greater than
  2125. &gt;= 4 logical greater than or equal
  2126. &lt; 4 logical less than
  2127. &lt;= 4 logical less than or equal
  2128. == 5 logical equal
  2129. != 5 logical not equal
  2130. &amp; 6 bitwise and
  2131. ^ 7 bitwise xor
  2132. | 8 bitwise or
  2133. &amp;&amp; 9 logical and
  2134. ^^ 10 logical xor
  2135. || 11 logical or
  2136. Operator priority can be ignored by using parentheses, for example (1 + 1) * 2
  2137. equals 4, while 1 + 1 * 2 equals 3.
  2138. </span><span style='color:#FFF'>String operations</span><span style='color:#AAA'>
  2139. Operators Priority Function
  2140. ------------------------------------------------
  2141. &gt; 4 alphabetical greater than
  2142. &gt;= 4 alphabetical greater than or equal
  2143. &lt; 4 alphabetical less than
  2144. &lt;= 4 alphabetical less than or equal
  2145. == 5 alphabetical equal using regex
  2146. != 5 alphabetical not equal using regex
  2147. === 5 alphabetical equal
  2148. !== 5 alphabetical not equal
  2149. Strings must be encased in double quotes or braces. The &gt; &gt;= &lt; &lt;= operators
  2150. perform basic string comparisons. The == != operators perform regular
  2151. expressions, with the argument on the left being the string, and the argument
  2152. on the right being the regex. For example {bla} == {%*a} would evaluate as 1.
  2153. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#MATH'>math</a> and <a href='#REGEXP'>regexp</a>.
  2154. <a name='MESSAGE'></a>
  2155. </span><span style='color:#5F5'> MESSAGE
  2156. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #message </span><span style='color:#FFF'>{</span><span style='color:#AAA'>listname</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>on</span><span style='color:#FFF'>|</span><span style='color:#AAA'>off</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2157. This will show the message status of all your lists if typed without an
  2158. argument. If you set for example VARIABLES to OFF you will no longer be
  2159. spammed when correctly using the #VARIABLE and #UNVARIABLE commands.
  2160. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CLASS'>class</a>, <a href='#DEBUG'>debug</a>, <a href='#IGNORE'>ignore</a>, <a href='#INFO'>info</a> and <a href='#KILL'>kill</a>.
  2161. <a name='METRIC SYSTEM'></a>
  2162. </span><span style='color:#5F5'> METRIC SYSTEM
  2163. </span><span style='color:#AAA'>
  2164. Name Symbol Factor
  2165. --------------------------------------------------
  2166. Mega M 1 000 000
  2167. Kilo K 1 000
  2168. milli m 0.001
  2169. micro u 0.000 001
  2170. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#ECHO'>echo</a>, <a href='#FORMAT'>format</a> and <a href='#MATH'>math</a>.
  2171. <a name='MOUSE'></a>
  2172. </span><span style='color:#5F5'> MOUSE
  2173. </span><span style='color:#AAA'>
  2174. To enable xterm mouse tracking use #CONFIG MOUSE ON.
  2175. To see mouse events as they happen use #CONFIG MOUSE INFO. This
  2176. information can then be used to create mouse events with the #event
  2177. command and buttons with the #button command.
  2178. Visual buttons and pop-ups can be drawn on the screen with the #draw
  2179. command.
  2180. The input field can be changed and renamed using #screen inputregion,
  2181. which allows creating named events for enter handling.
  2182. Links can be created using the MSLP protocol which will generate link
  2183. specific events when clicked.
  2184. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#BUTTON'>button</a>, <a href='#DRAW'>draw</a>, <a href='#EVENT'>event</a> and <a href='#MSLP'>MSLP</a>.
  2185. <a name='MSDP'></a>
  2186. </span><span style='color:#5F5'> MSDP
  2187. </span><span style='color:#AAA'>
  2188. MSDP (Mud Server Data Protocol) is part of the #port functionality.
  2189. See #help event for additional documentation as all MSDP events are
  2190. available as regular events.
  2191. Available MSDP events can be queried using the MSDP protocol
  2192. as described in the specification.
  2193. </span><span style='color:#FFF'>
  2194. https://tintin.sourceforge.io/protocols/msdp
  2195. Related</span><span style='color:#AAA'>: <a href='#EVENT'>event</a> and <a href='#PORT'>port</a>.
  2196. <a name='MSLP'></a>
  2197. </span><span style='color:#5F5'> MSLP
  2198. </span><span style='color:#AAA'>
  2199. MSLP (Mud Server Link Protocol) requires enabling #config mouse on,
  2200. and creating the appropriate LINK events.
  2201. The simplest link can be created by surrounding a keyword with the
  2202. &bsol;e[4m and &bsol;e[24m tags.
  2203. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #substitute {&bsol;b{n|e|s|w|u|d}&bsol;b} {&bsol;e[4m%1&bsol;[24m}
  2204. This would display 'Exits: n, e, w.' as 'Exits: n, e, w.'.
  2205. When clicked this would trigger the PRESSED LINK MOUSE BUTTON ONE
  2206. event of which %4 will hold the link command and %6 holds the
  2207. link name, which in the case of a simple link will be empty.
  2208. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #event {PRESSED LINK MOUSE BUTTON ONE} {#send {%4}}
  2209. Keep in mind that if you change PRESSED to DOUBLE-CLICKED the link
  2210. will only work if the text does not scroll in between clicks.
  2211. If you want to create a complex link use an OSC code.
  2212. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #sub {&bsol;bsmurf&bsol;b} {&bsol;e]68;1;;say I hate smurfs!&bsol;a&bsol;e[4m%0&bsol;e[24m}
  2213. If you have the LINK event of the previous example set, the %4
  2214. argument will contain 'say I hate smurfs!'.
  2215. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #sub {&bsol;bgoblin&bsol;b} {&bsol;e]68;1;SEND;kill goblin&bsol;a&bsol;e[4m%0&bsol;e[24m}
  2216. Notice the previous instance of ;; has been replaced with ;SEND;
  2217. which will name the link. This will generate a named event.
  2218. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #event {PRESSED LINK SEND MOUSE BUTTON ONE} {#send {%4}}
  2219. By naming links you can organize things a little bit better instead
  2220. of tunneling everything through the same event.
  2221. Keep in mind that the server is allowed to use &bsol;e]68;1;&bsol;a as well,
  2222. subsequently various security measures are in place.
  2223. To create secure links, which are filtered out when send by a server,
  2224. you need to use &bsol;e]68;2;&bsol;a, and they instead trigger the SECURE LINK
  2225. event.
  2226. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #sub {%* tells %*} {&bsol;e]68;2;EXEC;#cursor set tell %1 &bsol;a&bsol;e[4m%0&bsol;e[24m}
  2227. </span><span style='color:#FFF'> </span><span style='color:#AAA'> #event {PRESSED SECURE LINK EXEC MOUSE BUTTON ONE} {%4}
  2228. This would make you start a reply when clicking on a tell.
  2229. Website: https://tintin.mudhalla.net/protocols/mslp
  2230. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#EVENT'>event</a> and <a href='#PORT'>port</a>.
  2231. <a name='NOP'></a>
  2232. </span><span style='color:#5F5'> NOP
  2233. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #nop </span><span style='color:#FFF'>{</span><span style='color:#AAA'>whatever</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2234. Short for 'no operation', and is ignored by the client. It is useful
  2235. for commenting in your coms file, any text after the nop and before a
  2236. semicolon or end of line is ignored. You shouldn't put braces { } in it
  2237. though, unless you close them properly.
  2238. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: By using braces you can comment out multiple lines of code in a script
  2239. file.
  2240. For commenting out an entire trigger and especially large sections of
  2241. triggers you would want to use /* text */
  2242. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #nop This is the start of my script file.
  2243. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#READ'>read</a>
  2244. <a name='PARSE'></a>
  2245. </span><span style='color:#5F5'> PARSE
  2246. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #parse </span><span style='color:#FFF'>{</span><span style='color:#AAA'>string</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>variable</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>commands</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2247. Like the loop statement, parse will loop from start to finish through
  2248. the given string. The value of the current character is stored in the
  2249. provided variable.
  2250. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #parse {hello world} {char} {#show &dollar;char}
  2251. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#BREAK'>break</a>, <a href='#CONTINUE'>continue</a>, <a href='#FOREACH'>foreach</a>, <a href='#LIST'>list</a>, <a href='#LOOP'>loop</a>, <a href='#REPEAT'>repeat</a>, <a href='#RETURN'>return</a> and <a href='#WHILE'>while</a>.
  2252. <a name='PATH'></a>
  2253. </span><span style='color:#5F5'> PATH
  2254. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #path </span><span style='color:#FFF'>{</span><span style='color:#AAA'>option</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>argument</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2255. create Will clear the path and start path mapping.
  2256. delete Will delete the last move of the path.
  2257. describe Describe the path and current position.
  2258. destroy Will clear the path and stop path mapping.
  2259. get Will get either the length or position.
  2260. goto Go the the start, end, or given position index.
  2261. insert Add the given argument to the path.
  2262. load Load the given variable as the new path.
  2263. map Display the map and the current position.
  2264. move Move the position forward or backward. If a number is given
  2265. the position is changed by the given number of steps.
  2266. run Execute the current path, with an optional floating point
  2267. delay in seconds as the second argument.
  2268. save Save the path to a variable. You must specify whether you
  2269. want to save the path 'forward' or 'backward'.
  2270. swap Switch the forward and backward path.
  2271. unzip Load the given speedwalk as the new path.
  2272. walk Take one step forward or backward.
  2273. zip Turn the path into a speedwalk.
  2274. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #path ins {unlock n;open n} {unlock s;open s}
  2275. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#MAP'>map</a> and <a href='#PATHDIR'>pathdir</a>.
  2276. <a name='PATHDIR'></a>
  2277. </span><span style='color:#5F5'> PATHDIR
  2278. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #pathdir </span><span style='color:#FFF'>{</span><span style='color:#AAA'>dir</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>reversed dir</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>coord</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2279. By default tintin sets the most commonly used movement commands
  2280. meaning you generally don't really have to bother with pathdirs.
  2281. Pathdirs are used by the #path and #map commands.
  2282. The first argument is a direction, the second argument is the reversed
  2283. direction. The reverse direction of north is south, etc.
  2284. The third argument is a spatial coordinate which is a power of two.
  2285. 'n' is 1, 'e' is 2, 's' is 4, 'w' is '8', 'u' is 16, 'd' is 32. The
  2286. exception is for compound directions, whose value should be the sum
  2287. of the values of each cardinal direction it is composed of. For
  2288. example, 'nw' is the sum of 'n' and 'w' which is 1 + 8, so 'nw'
  2289. needs to be given the value of 9. This value is required for the
  2290. #map functionality to work properly.
  2291. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #pathdir {ue} {dw} {18}
  2292. #pathdir {dw} {ue} {40}
  2293. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: You can remove a pathdir with the #unpathdir command.
  2294. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#MAP'>map</a> and <a href='#PATH'>path</a>.
  2295. <a name='PCRE'></a>
  2296. </span><span style='color:#5F5'> PCRE
  2297. </span><span style='color:#AAA'>
  2298. A regular expression, regex or regexp is a sequence of characters that
  2299. defines a search pattern. Since the 1980s, different syntaxes for
  2300. writing regular expressions exist, the two most widely used ones being
  2301. the POSIX syntax and the similar but more advanced Perl standard.
  2302. TinTin++ supports the Perl standard known as PCRE (Perl Compatible
  2303. Regular Expressions).
  2304. Regular expressions are an integral part of TinTin++, but keep in mind
  2305. that tintin doesn't allow you to use regular expressions directly,
  2306. instead it uses a simpler intermediate syntax that still allows more
  2307. complex expressions when needed.
  2308. Commands that utilize regular expressions are: action, alias, elseif,
  2309. gag, grep, highlight, if, kill, local, math, prompt, regexp, replace,
  2310. substitute, switch, variable and while. Several other commands use
  2311. regular expressions in minor ways. Fortunately the basics are very
  2312. easy to learn.
  2313. </span><span style='color:#FFF'> TinTin++ Regular Expression</span><span style='color:#AAA'>
  2314. The following support is available for regular expressions.
  2315. ^ match start of line.
  2316. &dollar; match of end of line.
  2317. &bsol; escape one character.
  2318. %1-%99 match of any text, stored in the corresponding index.
  2319. %0 should be avoided in the regex, contains all matched text.
  2320. { } embed a perl compatible regular expression, matches are stored.
  2321. %!{ } embed a perc compatible regular expression, matches are not stored.
  2322. [ ] . + | ( ) ? * are treated as normal text unless used within braces. Keep in
  2323. mind that { } is replaced with ( ) automatically unless %!{ } is used.
  2324. </span><span style='color:#FFF'>
  2325. TinTin++ Description POSIX</span><span style='color:#AAA'>
  2326. %d Match zero to any number of digits ([0-9]*?)
  2327. %D Match zero to any number of non-digits ([^0-9]*?)
  2328. %i Matches become case insensitive (?i)
  2329. %I Matches become case sensitive (default) (?-i)
  2330. %s Match zero to any number of spaces ([&bsol;r&bsol;n&bsol;t ]*?)
  2331. %w Match zero to any number of word characters ([A-Za-z0-9_]*?)
  2332. %W Match zero to any number of non-word characters ([^A-Za-z0-9_]*?)
  2333. %? Match zero or one character (.??)
  2334. %. Match one character (.)
  2335. %+ Match one to any number of characters (.+?)
  2336. %* Match zero to any number of characters (.*?)
  2337. </span><span style='color:#FFF'>
  2338. Variables</span><span style='color:#AAA'>
  2339. If you use %1 in an action to perform a match the matched string is
  2340. stored in the %1 variable which can be used in the action body.
  2341. Example: %1 says 'Tickle me'} {tickle %1}
  2342. If you use %2 the match is stored in %2, etc. If you use an unnumbered
  2343. match like %* or %S the match is stored at the last used index
  2344. incremented by one.
  2345. Example: %3 says '%*'} {#if {&quot;%4&quot; == &quot;Tickle me&quot;} {tickle %3}}
  2346. The maximum variable index is 99. If you begin an action with %* the
  2347. match is stored in %1. You should never use %0 in the trigger part of
  2348. an action, when used in the body of an action %0 contains all the parts
  2349. of the string that were matched.
  2350. To prevent a match from being stored use %!*, %!w, etc.
  2351. </span><span style='color:#FFF'>
  2352. Perl Compatible Regular Expressions</span><span style='color:#AAA'>
  2353. You can embed a PCRE (Perl Compatible Regular Expression) using curley
  2354. braces { }, these braces are replaced with parentheses ( ) unless you
  2355. use %!{ }.
  2356. </span><span style='color:#FFF'>
  2357. Or</span><span style='color:#AAA'>
  2358. You can separate alternatives within a PCRE using the | character.
  2359. Example: #act {%* raises {his|her|its} eyebrows.} {say 42..}
  2360. </span><span style='color:#FFF'>
  2361. Brackets</span><span style='color:#AAA'>
  2362. You can group alternatives and ranges within a PCRE using brackets.
  2363. Example: #act {%* says 'Who is number {[1-9]}} {say &dollar;number[%2] is number %2}
  2364. The example only triggers if someone provides a number between 1 and
  2365. 9. Any other character will cause the action to not trigger.
  2366. Example: #act {%* says 'Set password to {[^0-9]*}&dollar;} {say The password must
  2367. contain at least one number, not for security reasons, but just to
  2368. annoy you.} {4}
  2369. When the ^ character is used within brackets it creates an inverse
  2370. search, [^0-9] matches every character except for a number between 0
  2371. and 9.
  2372. </span><span style='color:#FFF'>
  2373. Quantification</span><span style='color:#AAA'>
  2374. A quantifier placed after a match specifies how often the match is
  2375. allowed to occur.
  2376. ? repeat zero or one time.
  2377. * repeat zero or multiple times.
  2378. + repeat once or multiple times.
  2379. {n} repeat exactly n times, n must be a number.
  2380. {n,} repeat at least n times, n must be a number.
  2381. {n,o} repeat between n and o times, n and o must be a number.
  2382. Example: #act {%* says 'Who is number {[1-9][0-9]{0,2}} {Say &dollar;number[%2] is
  2383. number %2}
  2384. The example only triggers if someone provides a number between 1 and
  2385. 999.
  2386. </span><span style='color:#FFF'>Parantheses</span><span style='color:#AAA'>
  2387. TinTin Regular Expressions automatically add parenthesis, for example
  2388. %* translates to (.*?) in PCRE unless the %* is found at the start or
  2389. end of the line, in which cases it translates to (.*). Paranthesis in
  2390. PCRE causes a change in execution priority similar to mathematical
  2391. expressions, but parentheses also causes the match to be stored to a
  2392. variable.
  2393. When nesting multiple sets of parentheses each nest is assigned its
  2394. numerical variable in order of appearance.
  2395. Example: #act {%* chats '{Mu(ha)+}'} {chat %2ha!}
  2396. If someone chats Muha you will chat Muhaha! If someone chats Muhaha
  2397. you will chat Muhahaha!
  2398. </span><span style='color:#FFF'>Lazy vs Greedy</span><span style='color:#AAA'>
  2399. By default regex matches are greedy, meaning {.*} will capture as much
  2400. text as possible.
  2401. Example: #regex {bli bla blo} {^{.*} {.*}&dollar;} {#show Arg1=(&amp;1) Arg2=(&amp;2)}
  2402. This will display: Arg1=(bli bla) Arg2=(blo)
  2403. By appending a ? behind a regex it becomes lazy, meaning {.*?} will
  2404. capture as little text as possible.
  2405. Example: #regex {bli bla blo} {^{.*?} {.*?}&dollar;} {#show Arg1=(&amp;1) Arg2=(&amp;2)}
  2406. This will display: Arg1=(bli) Arg2=(bla blo).
  2407. </span><span style='color:#FFF'>Escape Codes</span><span style='color:#AAA'>
  2408. PCRE support the following escape codes.
  2409. </span><span style='color:#FFF'>
  2410. PCRE Description POSIX</span><span style='color:#AAA'>
  2411. &bsol;A Match start of string ^
  2412. &bsol;b Match word boundaries (^|&bsol;r|&bsol;n|&bsol;t| |&dollar;)
  2413. &bsol;B Match non-word boundaries [^&bsol;r&bsol;n&bsol;t ]
  2414. &bsol;c Insert control character &bsol;c
  2415. &bsol;d Match digits [0-9]
  2416. &bsol;D Match non-digits [^0-9]
  2417. &bsol;e Insert escape character &bsol;e
  2418. &bsol;f Insert form feed character &bsol;f
  2419. &bsol;n Insert line feed character &bsol;n
  2420. &bsol;r Insert carriage return character &bsol;r
  2421. &bsol;s Match spaces [&bsol;r&bsol;n&bsol;t ]
  2422. &bsol;S Match non-spaces [^&bsol;r&bsol;n&bsol;t ]
  2423. &bsol;t Insert tab character &bsol;t
  2424. &bsol;w Match letters, numbers, and underscores [A-Za-z0-9_]
  2425. &bsol;W Match non-letters, numbers, and underscores [^A-Za-z0-9_]
  2426. &bsol;x Insert hex character &bsol;x
  2427. &bsol;Z Match end of string &dollar;
  2428. &bsol;s matches one space, &bsol;s+ matches one or multiple spaces.
  2429. </span><span style='color:#FFF'>Color triggers</span><span style='color:#AAA'>
  2430. To make matching easier text triggers (Actions, Gags, Highlights,
  2431. Prompts, and Substitutes) have their color codes stripped. If you
  2432. want to create a color trigger you must start the triggers with a ~
  2433. (tilde). To make escape codes visible use #config {convert meta} on.
  2434. Example: #action {~&bsol;e[1;37m%1} {#var roomname %1}
  2435. If the room name is the only line on the server in bright white
  2436. white color trigger will save the roomname.
  2437. This covers the basics. PCRE has more options, most of which are
  2438. somewhat obscure, so you'll have to read a PCRE manual for additional
  2439. information.
  2440. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#MAP'>map</a> and <a href='#PATH'>path</a>.
  2441. <a name='PORT'></a>
  2442. </span><span style='color:#5F5'> PORT
  2443. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #port </span><span style='color:#FFF'>{</span><span style='color:#AAA'>option</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>argument</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2444. </span><span style='color:#FFF'>#port {init} {name} {port} {file}
  2445. </span><span style='color:#AAA'> Initilize a port session.
  2446. </span><span style='color:#FFF'>#port {call} {address} {port}
  2447. </span><span style='color:#AAA'> Connect to a remote socket.
  2448. </span><span style='color:#FFF'>#port {color} {color names}
  2449. </span><span style='color:#AAA'> Set the default color of port messages.
  2450. </span><span style='color:#FFF'>#port {dnd}
  2451. </span><span style='color:#AAA'> Do Not Disturb. Decline new connections
  2452. </span><span style='color:#FFF'>#port {group} {name} {group}
  2453. </span><span style='color:#AAA'> Assign a socket group.
  2454. </span><span style='color:#FFF'>#port {ignore} {name}
  2455. </span><span style='color:#AAA'> Ignore a socket
  2456. </span><span style='color:#FFF'>#port {info}
  2457. </span><span style='color:#AAA'> Display information about the port session.
  2458. </span><span style='color:#FFF'>#port {name} {name}
  2459. </span><span style='color:#AAA'> Change socket name.
  2460. </span><span style='color:#FFF'>#port {prefix} {text}
  2461. </span><span style='color:#AAA'> Set prefix before each message.
  2462. </span><span style='color:#FFF'>#port {send} {name|all} {text}
  2463. </span><span style='color:#AAA'> Send data to socket
  2464. </span><span style='color:#FFF'>#port {uninitialize}
  2465. </span><span style='color:#AAA'> Uninitialize the port session.
  2466. </span><span style='color:#FFF'>#port {who}
  2467. </span><span style='color:#AAA'> Show all connections
  2468. </span><span style='color:#FFF'>#port {zap} {name}
  2469. </span><span style='color:#AAA'> Close a connection
  2470. The port command is very similar to chat except that it creates a
  2471. new session dedicated to receiving socket connections at the given
  2472. port number without built-in support for a communication protocol.
  2473. You can init with 0 as the port number to create a dummy session.
  2474. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#ALL'>all</a>, <a href='#CHAT'>chat</a>, <a href='#RUN'>run</a>, <a href='#SESSION'>session</a>, <a href='#SESSIONNAME'>sessionname</a>, <a href='#SNOOP'>snoop</a>, <a href='#SSL'>ssl</a> and <a href='#ZAP'>zap</a>.
  2475. <a name='PROMPT'></a>
  2476. </span><span style='color:#5F5'> PROMPT
  2477. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #prompt </span><span style='color:#FFF'>{</span><span style='color:#AAA'>text</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>new text</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>row #</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>col #</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2478. Prompt is a feature for split window mode, which will capture a line
  2479. received from the server and display it on the status bar of your
  2480. split screen terminal. You would define &lt;text&gt; and &lt;new text&gt; the
  2481. same way as with a substitution.
  2482. The row number is optional and useful if you use a non standard split
  2483. mode. A positive row number draws #row lines from the top while a
  2484. negative number draws #row lines from the bottom. Without an argument
  2485. #prompt will write to the default split line, which is one row above
  2486. the input line, typically at row -2.
  2487. The col number is optional and can be used to set the column index.
  2488. A positive col number draws the given number of columns from the left,
  2489. while a negative col number draws from the right. If you leave the
  2490. column argument empty tintin will clear the row before printing at
  2491. the start of the row.
  2492. The #show command takes a row and col argument as well so it's also
  2493. possible to place text on your split lines using #show.
  2494. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: See </span><span style='color:#FFF'>#help split</span><span style='color:#AAA'> for more information on split mode.
  2495. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: See </span><span style='color:#FFF'>#help substitute</span><span style='color:#AAA'> for more information on text
  2496. substitutions.
  2497. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: You can remove a prompt with the #unprompt command.
  2498. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#ACTION'>action</a>, <a href='#GAG'>gag</a>, <a href='#HIGHLIGHT'>highlight</a> and <a href='#SUBSTITUTE'>substitute</a>.
  2499. <a name='READ'></a>
  2500. </span><span style='color:#5F5'> READ
  2501. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #read </span><span style='color:#FFF'>{</span><span style='color:#AAA'>filename</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2502. Reads a commands file into memory. The coms file is merged in with
  2503. the currently loaded commands. Duplicate commands are overwritten.
  2504. If you uses braces, { and } you can use several lines for 1 commands.
  2505. This however means you must always match every { with a } for the read
  2506. command to work.
  2507. You can comment out triggers using /* text */
  2508. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#LOG'>log</a>, <a href='#SCAN'>scan</a>, <a href='#TEXTIN'>textin</a> and <a href='#WRITE'>write</a>.
  2509. <a name='REGEXP'></a>
  2510. </span><span style='color:#5F5'> REGEXP
  2511. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #regexp </span><span style='color:#FFF'>{</span><span style='color:#AAA'>string</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>expression</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>true</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>false</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2512. Compares the string to the given regular expression.
  2513. The expression can contain escapes, and if you want to match a literal
  2514. &bsol; character you'll have to use &bsol;&bsol; to match a single backslash.
  2515. Variables are stored in &amp;1 to &amp;99 with &amp;0 holding the matched substring.
  2516. ^ force match of start of line.
  2517. &dollar; force match of end of line.
  2518. &bsol; escape one character.
  2519. %1-%99 lazy match of any text, available at %1-%99.
  2520. %0 should be avoided in triggers, and if left alone lists all matches.
  2521. { } embed a raw regular expression, matches are stored to %1-%99.
  2522. %!{ } embed a raw regular expression, matches are not stored.
  2523. [ ] . + | ( ) ? * are treated as normal text unlessed used within
  2524. braces. Keep in mind that { } is replaced with ( ) automatically
  2525. unless %!{ } is used.
  2526. Of the following the (lazy) match is available at %1-%99 + 1
  2527. %a match zero to any number of characters including newlines.
  2528. %A match zero to any number of newlines.
  2529. %d match zero to any number of digits.
  2530. %D match zero to any number of non digits.
  2531. %p match zero to any number of printable characters.
  2532. %P match zero to any number of non printable characters.
  2533. %s match zero to any number of spaces.
  2534. %S match zero to any number of non spaces.
  2535. %u match zero to any number of unicode characters.
  2536. %U match zero to any number of non unicode characters.
  2537. %w match zero to any number of word characters.
  2538. %W match zero to any number of non word characters.
  2539. If you want to match 1 digit use %+1d, if you want to match between 3
  2540. and 5 spaces use %+3..5s, if you want to match 0 or more word
  2541. characters use %+0..w, etc.
  2542. %+ match one to any number of characters.
  2543. %? match zero or one character.
  2544. %. match one character.
  2545. %* match zero to any number of characters.
  2546. %i matching becomes case insensitive.
  2547. %I matching becomes case sensitive (default).
  2548. The match is automatically stored to a value between %1 and %99
  2549. starting at %1 and incrementing by 1 for every regex. If you use
  2550. %15 as a regular expression, the next unnumbered regular expression
  2551. would be %16. To prevent a match from being stored use %!*, %!w, etc.
  2552. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #regexp {bli bla blo} {bli {.*} blo} {#show &amp;1}
  2553. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CASE'>case</a>, <a href='#DEFAULT'>default</a>, <a href='#ELSE'>else</a>, <a href='#ELSEIF'>elseif</a>, <a href='#IF'>if</a> and <a href='#SWITCH'>switch</a>.
  2554. <a name='REPEAT'></a>
  2555. </span><span style='color:#5F5'> REPEAT
  2556. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #</span><span style='color:#FFF'>[</span><span style='color:#AAA'>number</span><span style='color:#FFF'>] {</span><span style='color:#AAA'>commands</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2557. Sometimes you want to repeat the same command multiple times. This is the
  2558. easiest way to accomplish that.
  2559. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #10 {buy bread}
  2560. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#BREAK'>break</a>, <a href='#CONTINUE'>continue</a>, <a href='#FOREACH'>foreach</a>, <a href='#LIST'>list</a>, <a href='#LOOP'>loop</a>, <a href='#PARSE'>parse</a>, <a href='#RETURN'>return</a> and <a href='#WHILE'>while</a>.
  2561. <a name='REPLACE'></a>
  2562. </span><span style='color:#5F5'> REPLACE
  2563. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #replace </span><span style='color:#FFF'>{</span><span style='color:#AAA'>variable</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>oldtext</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>newtext</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2564. Searches the variable text replacing each occurrence of 'oldtext' with
  2565. 'newtext'. The 'newtext' argument can be a regular expression.
  2566. Variables are stored in &amp;1 to &amp;99 with &amp;0 holding the matched substring.
  2567. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CAT'>cat</a>, <a href='#FORMAT'>format</a>, <a href='#FUNCTION'>function</a>, <a href='#LOCAL'>local</a>, <a href='#MATH'>math</a>, <a href='#SCRIPT'>script</a> and <a href='#VARIABLE'>variable</a>.
  2568. <a name='RETURN'></a>
  2569. </span><span style='color:#5F5'> RETURN
  2570. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #return </span><span style='color:#FFF'>{</span><span style='color:#AAA'>text</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2571. This command can be used to break out of a command string being
  2572. executed.
  2573. If used inside a #function you can use #return with an argument to both
  2574. break out of the function and set the result variable.
  2575. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#BREAK'>break</a>, <a href='#CONTINUE'>continue</a>, <a href='#FOREACH'>foreach</a>, <a href='#LIST'>list</a>, <a href='#LOOP'>loop</a>, <a href='#PARSE'>parse</a>, <a href='#REPEAT'>repeat</a> and <a href='#WHILE'>while</a>.
  2576. <a name='RUN'></a>
  2577. </span><span style='color:#5F5'> RUN
  2578. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #run </span><span style='color:#FFF'>{</span><span style='color:#AAA'>name</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>shell command</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>file</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2579. The run command works much like the system command except that it
  2580. runs the command in a pseudo terminal. The run command also creates
  2581. a session that treats the given shell command as a server. This
  2582. allows you to run ssh, as well as any other shell application, with
  2583. full tintin scripting capabilities. If a file name is given the file
  2584. is loaded prior to execution.
  2585. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #run {somewhere} {ssh someone@somewhere.com}
  2586. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #run {something} {tail -f chats.log}
  2587. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#ALL'>all</a>, <a href='#PORT'>port</a>, <a href='#SESSION'>session</a>, <a href='#SESSIONNAME'>sessionname</a>, <a href='#SNOOP'>snoop</a>, <a href='#SSL'>ssl</a> and <a href='#ZAP'>zap</a>.
  2588. <a name='SCAN'></a>
  2589. </span><span style='color:#5F5'> SCAN
  2590. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #scan </span><span style='color:#FFF'>{</span><span style='color:#AAA'>abort</span><span style='color:#FFF'>|</span><span style='color:#AAA'>csv</span><span style='color:#FFF'>|</span><span style='color:#AAA'>tsv</span><span style='color:#FFF'>|</span><span style='color:#AAA'>txt</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>filename</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2591. The scan command is a file reading utility.
  2592. </span><span style='color:#FFF'>#scan {abort}
  2593. </span><span style='color:#AAA'> This command must be called from with a SCAN event and will
  2594. abort the scan if one is in progress.
  2595. </span><span style='color:#FFF'>#scan {csv} &lt;filename&gt;
  2596. </span><span style='color:#AAA'> The scan csv command reads in a comma separated value file
  2597. without printing the content to the screen. Instead it triggers one
  2598. of two events.
  2599. The SCAN CSV HEADER event is triggered on the first line of the csv
  2600. file. The SCAN CSV LINE event is triggered on the second and each
  2601. subsequent line of the csv file. The %0 argument contains the entire
  2602. line, with %1 containing the first value, %2 the second value, etc,
  2603. all the way up to %99.
  2604. Values containing spaces must be surrounded with quotes, keep in mind
  2605. newlines within quotes are not supported. Use two quotes to print one
  2606. literal quote character.
  2607. </span><span style='color:#FFF'> #scan {dir} &lt;filename&gt; &lt;variable&gt;
  2608. </span><span style='color:#AAA'>
  2609. The scan dir command will read the given filename or directory and
  2610. store any gathered information into the provided variable.
  2611. </span><span style='color:#FFF'>#scan {tsv} &lt;filename&gt;
  2612. </span><span style='color:#AAA'> The scan tsv &lt;filename&gt; command reads in a tab separated value file
  2613. without printing the content to the screen. Instead it triggers the
  2614. SCAN TSV HEADER event for the first line and SCAN TSV LINE for all
  2615. subsequent lines.
  2616. </span><span style='color:#FFF'>#scan {file} &lt;filename&gt; {commands}
  2617. </span><span style='color:#AAA'> The scan file command reads the given files and executes the
  2618. commands argument. &amp;0 contains the raw content of the file and
  2619. &amp;1 contains the plain content. &amp;2 contains the raw byte size of the
  2620. file and &amp;3 the plain byte size. &amp;5 contains the line count.
  2621. </span><span style='color:#FFF'>#scan {txt} &lt;filename&gt;
  2622. </span><span style='color:#AAA'> The scan txt &lt;filename&gt; command reads in a file and sends its content
  2623. to the screen as if it was send by a server. After using scan you can
  2624. use page-up and down to view the file.
  2625. This command is useful to convert ansi color files to html or viewing
  2626. raw log files.
  2627. Actions, highlights, and substitutions will trigger as normal, and it
  2628. is possible to create an action to execute #scan abort to prematurely
  2629. stop the scan.
  2630. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#READ'>read</a> and <a href='#TEXTIN'>textin</a>.
  2631. <a name='SCREEN'></a>
  2632. </span><span style='color:#5F5'> SCREEN
  2633. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #screen </span><span style='color:#FFF'>{</span><span style='color:#AAA'>option</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>argument</span><span style='color:#FFF'>}
  2634. </span><span style='color:#AAA'>The screen command offers a variety of screen manipulation
  2635. commands and utilities.
  2636. </span><span style='color:#FFF'>#screen blur
  2637. </span><span style='color:#AAA'> Move the terminal to the back of the stack.
  2638. </span><span style='color:#FFF'>#screen clear [all|scroll region|square] &lt;args&gt;
  2639. </span><span style='color:#AAA'> Provide 4 arguments defining the top left and bottom right corner
  2640. when erasing a square.
  2641. </span><span style='color:#FFF'>#screen focus
  2642. </span><span style='color:#AAA'> Move the terminal to the front of the stack.
  2643. </span><span style='color:#FFF'>#screen fullscreen [on|off]
  2644. </span><span style='color:#AAA'> Toggles fullscreen mode when used without an argument.
  2645. </span><span style='color:#FFF'>#screen get &lt;option&gt; &lt;var&gt;
  2646. </span><span style='color:#AAA'> Get various screen options and save them to &lt;var&gt;. Use #screen
  2647. get without an argument to see all available options.
  2648. </span><span style='color:#FFF'>#screen info
  2649. </span><span style='color:#AAA'> Debugging information.
  2650. </span><span style='color:#FFF'>#screen inputregion &lt;square&gt; [name]
  2651. </span><span style='color:#AAA'> Set the input region. The name argument is optional and can be
  2652. used to create named RECEIVED INPUT [NAME] events.
  2653. </span><span style='color:#FFF'>#screen load &lt;both|label|title&gt;
  2654. </span><span style='color:#AAA'> Reload the saved title, label, or both.
  2655. </span><span style='color:#FFF'>#screen minimize &lt;on|off&gt;
  2656. </span><span style='color:#AAA'> Minimize with on, restore with off.
  2657. </span><span style='color:#FFF'>#screen maximize [on|off]
  2658. </span><span style='color:#AAA'> Maximize with on, restore with off.
  2659. </span><span style='color:#FFF'>#screen move &lt;height&gt; &lt;width&gt;
  2660. </span><span style='color:#AAA'> Move the upper left corner of the terminal to pixel coordinate.
  2661. </span><span style='color:#FFF'>#screen raise &lt;event&gt;
  2662. </span><span style='color:#AAA'> This will raise several screen events with %1 and %2 arguments.
  2663. </span><span style='color:#FFF'>#screen refresh
  2664. </span><span style='color:#AAA'> Terminal dependant, may do nothing.
  2665. </span><span style='color:#FFF'>#screen rescale &lt;height&gt; &lt;width&gt;
  2666. </span><span style='color:#AAA'> Resize the screen to the given height and width in pixels.
  2667. </span><span style='color:#FFF'>#screen resize &lt;rows&gt; &lt;cols&gt;
  2668. </span><span style='color:#AAA'> Resize the screen to the given height and width in characters.
  2669. </span><span style='color:#FFF'>#screen save &lt;both|label|title&gt;
  2670. </span><span style='color:#AAA'> Save the title, label, or both.
  2671. </span><span style='color:#FFF'>#screen scroll &lt;square&gt;
  2672. </span><span style='color:#AAA'> Set the scrolling region, changes the split setting.
  2673. </span><span style='color:#FFF'>#screen set &lt;both|label|title&gt;
  2674. </span><span style='color:#AAA'> Set the title, label, or both. Only title works on Windows.
  2675. </span><span style='color:#FFF'>#screen swap
  2676. </span><span style='color:#AAA'> Swap the input and scroll region.
  2677. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#BELL'>bell</a>
  2678. <a name='SCREEN READER'></a>
  2679. </span><span style='color:#5F5'> SCREEN READER
  2680. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #config </span><span style='color:#FFF'>{</span><span style='color:#AAA'>SCREEN READER</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>ON|OFF</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2681. Screen reader mode is enabled by using #config screen on. The main
  2682. purpose of the screen reader mode is to report to servers that a
  2683. screen reader is being used by utilizing the MTTS standard. The MTTS
  2684. specification is available at:
  2685. http://tintin.sourceforge.net/protocols/mtts
  2686. With the screen reader mode enabled TinTin++ will try to remove visual
  2687. elements where possible.
  2688. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CONFIG'>config</a>
  2689. <a name='SCRIPT'></a>
  2690. </span><span style='color:#5F5'> SCRIPT
  2691. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #script </span><span style='color:#FFF'>{</span><span style='color:#AAA'>variable</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>shell command</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2692. The script command works much like the system command except that it
  2693. treats the generated echos as commands if no variable is provided.
  2694. This is useful for running php, perl, ruby, and python scripts. You
  2695. can run these scrips either from file or from within tintin if the
  2696. scripting language allows this.
  2697. If you provide a variable the output of the script is stored as a list.
  2698. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #script {ruby -e 'print &quot;#show hello world&quot;'}
  2699. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #script {python -c 'print &quot;#show hello world&quot;'}
  2700. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #script {php -r 'echo &quot;#show hello world&quot;'}
  2701. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #script {path} {pwd};#show The path is &dollar;path[1].
  2702. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#FORMAT'>format</a>, <a href='#FUNCTION'>function</a>, <a href='#LOCAL'>local</a>, <a href='#MATH'>math</a>, <a href='#REPLACE'>replace</a> and <a href='#VARIABLE'>variable</a>.
  2703. <a name='SEND'></a>
  2704. </span><span style='color:#5F5'> SEND
  2705. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #send </span><span style='color:#FFF'>{</span><span style='color:#AAA'>text</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2706. Sends the text directly to the server, useful if you want to start
  2707. with an escape code.
  2708. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#TEXTIN'>textin</a>
  2709. <a name='SESSION'></a>
  2710. </span><span style='color:#5F5'> SESSION
  2711. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #session </span><span style='color:#FFF'>{</span><span style='color:#AAA'>name</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>host</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>port</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>file</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2712. Starts a telnet session with the given name, host, port, and optional
  2713. file name. The name can be anything you want, except the name of an
  2714. already existant session, a number, or the keywords '+' and '-'.
  2715. If a file name is given the file is only read if the session succesfully
  2716. connects.
  2717. Without an argument #session shows the currently defined sessions.
  2718. If you have more than one session, you can use the following commands:
  2719. #session {-} Switch to the previous session.
  2720. #session {+} Switch to the next session.
  2721. #session {&lt;number&gt;} Switch to the given session. Session 0 is the
  2722. startup session, +1 the first, +2 the second, and
  2723. -1 is the last session. Sessions are (currently)
  2724. sorted in order of creation.
  2725. #gts Switch to the startup session. The name gts stands
  2726. for global tintin session.
  2727. #ats Switch to the active session. The name ats stands
  2728. for active tintin session.
  2729. not necessarily the calling session.
  2730. #{name} Activates to the session with the given name.
  2731. #{name} {command}: Executes a command with the given session without
  2732. changing the active session.
  2733. @&lt;name&gt;{text}: Parse text in the given session, substituting the
  2734. variables and functions, and print the result in
  2735. the current active session.
  2736. The startup session is named 'gts' and can be used for relog scripts.
  2737. Do keep in mind that tickers do not work in the startup session.
  2738. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #event {SESSION DISCONNECTED} {#gts #delay 10 #ses %0 tintin.net 4321}
  2739. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#ALL'>all</a>, <a href='#PORT'>port</a>, <a href='#RUN'>run</a>, <a href='#SESSIONNAME'>sessionname</a>, <a href='#SNOOP'>snoop</a>, <a href='#SSL'>ssl</a> and <a href='#ZAP'>zap</a>.
  2740. <a name='SESSIONNAME'></a>
  2741. </span><span style='color:#5F5'> SESSIONNAME
  2742. </span><span style='color:#FFF'>Syntax</span><span style='color:#AAA'>: #[sessionname] </span><span style='color:#FFF'>{</span><span style='color:#AAA'>commands</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2743. You can create multiple sessions with the #session command. By default only one
  2744. session is active, meaning commands you input are executed in the active
  2745. session. While all sessions receive output, only output sent to the active
  2746. session is displayed.
  2747. When you create a session with the #session command you must specify a session
  2748. name, the session name, prepended with a hashtag, can be used to activate the
  2749. session when used without an argument. If an argument is given it will be
  2750. executed by that session as a command, the session will not be activated.
  2751. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #ses one tintin.net 23;#ses two tintin.net 23;#one;#two grin
  2752. This will create two sessions, the session that was created last (two in this
  2753. case) will be automatically activated upon creation. Using #one, session one is
  2754. activated. Using #two grin, the grin social will be executed by session two,
  2755. session one will remain the active session.
  2756. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#ALL'>all</a>, <a href='#PORT'>port</a>, <a href='#RUN'>run</a>, <a href='#SESSION'>session</a>, <a href='#SNOOP'>snoop</a>, <a href='#SSL'>ssl</a> and <a href='#ZAP'>zap</a>.
  2757. <a name='SHOWME'></a>
  2758. </span><span style='color:#5F5'> SHOWME
  2759. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #show </span><span style='color:#FFF'>{</span><span style='color:#AAA'>string</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>row</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>col</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2760. Display the string to the terminal, do not send to the server. Useful
  2761. for status, warnings, etc. The {row} and col number are optional and
  2762. work the same way as the row number of the #prompt trigger.
  2763. Actions can be triggered by the show command. If you want to avoid
  2764. this from happening use: #line ignore #show {&lt;string&gt;}.
  2765. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #tick {TICK} {#delay 50 #show 10 SECONDS TO TICK!!!} {60}
  2766. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: The #prompt helpfile contains more information on using the
  2767. option {row} and {col} arguments.
  2768. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#BUFFER'>buffer</a>, <a href='#DRAW'>draw</a>, <a href='#ECHO'>echo</a>, <a href='#GREP'>grep</a> and <a href='#PROMPT'>prompt</a>.
  2769. <a name='SNOOP'></a>
  2770. </span><span style='color:#5F5'> SNOOP
  2771. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #snoop </span><span style='color:#FFF'>{</span><span style='color:#AAA'>session name</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>on</span><span style='color:#FFF'>|</span><span style='color:#AAA'>off</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2772. If there are multiple sessions active, this command allows you to monitor
  2773. what is going on in the sessions that are not currently active. The
  2774. line of text from other sessions will be prefixed by the session's name.
  2775. You can toggle off snoop mode by executing #snoop a second time.
  2776. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#ALL'>all</a>, <a href='#PORT'>port</a>, <a href='#RUN'>run</a>, <a href='#SESSION'>session</a>, <a href='#SESSIONNAME'>sessionname</a>, <a href='#SSL'>ssl</a> and <a href='#ZAP'>zap</a>.
  2777. <a name='SPEEDWALK'></a>
  2778. </span><span style='color:#5F5'> SPEEDWALK
  2779. </span><span style='color:#AAA'>
  2780. Speedwalking allows you to enter multiple directions without using
  2781. semicolons. Directions should be prefixed with a number and will be
  2782. executed the given number of times.
  2783. You can enable speedwalking with #CONFIG {SPEEDWALK} {ON}.
  2784. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: Without speedwalk, you have to type:
  2785. </span><span style='color:#FFF'>s;s;w;w;w;w;w;s;s;s;w;w;w;n;n;w
  2786. </span><span style='color:#AAA'>With speedwalk, you only have to type:
  2787. </span><span style='color:#FFF'>2s5w3s3w2n1w
  2788. Related</span><span style='color:#AAA'>: <a href='#ALIAS'>alias</a>, <a href='#CURSOR'>cursor</a>, <a href='#HISTORY'>history</a>, <a href='#KEYPAD'>keypad</a>, <a href='#MACRO'>macro</a> and <a href='#TAB'>tab</a>.
  2789. <a name='SPLIT'></a>
  2790. </span><span style='color:#5F5'> SPLIT
  2791. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #split </span><span style='color:#FFF'>{</span><span style='color:#AAA'>top bar</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>bottom bar</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>left bar</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>right bar</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>input bar</span><span style='color:#FFF'>}
  2792. </span><span style='color:#AAA'>
  2793. This option requires for your terminal to support VT100 emulation.
  2794. #split allows the creation of a top status bar, a left and right status
  2795. bar, a scrolling region, a bottom status bar, and an input line.
  2796. </span><span style='color:#0AA'>╭────────────────────────────────╮
  2797. │</span><span style='color:#FFF'> top bar </span><span style='color:#0AA'> │
  2798. ├──────┬──────────────────┬──────┤
  2799. │</span><span style='color:#FFF'> left </span><span style='color:#0AA'>│</span><span style='color:#FFF'> scrolling </span><span style='color:#0AA'>│</span><span style='color:#FFF'> right</span><span style='color:#0AA'>│
  2800. │</span><span style='color:#FFF'> bar </span><span style='color:#0AA'>│</span><span style='color:#FFF'> region </span><span style='color:#0AA'>│</span><span style='color:#FFF'> bar </span><span style='color:#0AA'>│
  2801. ├──────┴──────────────────┴──────┤
  2802. │</span><span style='color:#FFF'> bottom bar </span><span style='color:#0AA'> │
  2803. ├────────────────────────────────┤
  2804. │</span><span style='color:#FFF'> input bar </span><span style='color:#0AA'> │
  2805. ╰────────────────────────────────╯
  2806. </span><span style='color:#AAA'>
  2807. By default the bottom status bar is filled with dashes --- and
  2808. subsequently it is also known as the split line. The scrolling
  2809. region is also known as the main screen and this is where all
  2810. incoming text is displayed by default.
  2811. If you use #split without an argument it will set the height of the
  2812. top status bar to 0 lines and the bottom status bar to 1 line.
  2813. If you use #split with one argument it will set the height of the top
  2814. status bar to the given number of lines and the bottom status bar will
  2815. be set to 1 line.
  2816. If you use two arguments the first argument is the height of the top
  2817. status bar and the second argument the height of the bottom status bar.
  2818. The third and fourth argument are optional and default to 0.
  2819. The fifth argument is optional and sets the size of the input bar, it
  2820. defaults to 1.
  2821. It is possible to use negative arguments in which case the bar width
  2822. defines the minimum width of the scrolling region.
  2823. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #split 0 0
  2824. This will create a split screen with just a scrolling region and an
  2825. input line. Great for the minimalist.
  2826. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #split 1 1 0 -80
  2827. This will create a split screen with a single line top and bottom
  2828. bar. The left bar has a width of 0 while the right bar will be of
  2829. variable width. If for example the screen is 100 columns wide, 80
  2830. columns will be used for the scrolling region, leaving a right bar
  2831. with a width of 20 columns.
  2832. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: You can display text on the split line(s) with the #prompt and
  2833. #show {line} {row} commands.
  2834. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: You can remove split mode with the #unsplit command.
  2835. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#ECHO'>echo</a>, <a href='#PROMPT'>prompt</a> and <a href='#SHOWME'>showme</a>.
  2836. <a name='SSL'></a>
  2837. </span><span style='color:#5F5'> SSL
  2838. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #ssl </span><span style='color:#FFF'>{</span><span style='color:#AAA'>name</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>host</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>port</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>file</span><span style='color:#FFF'>}
  2839. Starts a secure socket telnet session with the given name, host, port,
  2840. and optional file name.
  2841. Related</span><span style='color:#AAA'>: <a href='#ALL'>all</a>, <a href='#PORT'>port</a>, <a href='#RUN'>run</a>, <a href='#SESSIONNAME'>sessionname</a>, <a href='#SNOOP'>snoop</a>, <a href='#SSL'>ssl</a> and <a href='#ZAP'>zap</a>.
  2842. <a name='STATEMENTS'></a>
  2843. </span><span style='color:#5F5'> STATEMENTS
  2844. </span><span style='color:#AAA'>
  2845. TinTin++ knows the following statements.
  2846. #break
  2847. #case {value} {true}
  2848. #continue
  2849. #default {commands}
  2850. #else {commands}
  2851. #elseif {expression} {true}
  2852. #foreach {list} {variable} {commands}
  2853. #if {expression} {true}
  2854. #loop {min} {max} {variable} {commands}
  2855. #parse {string} {variable} {commands}
  2856. #return {value}
  2857. #switch {expression} {commands}
  2858. #while {expression} {commands}
  2859. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#COMMANDS'>commands</a>, <a href='#HELP'>help</a> and <a href='#INFO'>info</a>.
  2860. <a name='SUBSTITUTE'></a>
  2861. </span><span style='color:#5F5'> SUBSTITUTE
  2862. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #substitute </span><span style='color:#FFF'>{</span><span style='color:#AAA'>text</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>new text</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>priority</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2863. Allows you to replace text from the server with the new text.
  2864. The %1-%99 variables can be used to capture text and use it as part of
  2865. the new output.
  2866. Color codes can be used to color the new text, to restore the color to
  2867. that of the original line the &lt;900&gt; color code can be used.
  2868. If only one argument is given, all active substitutions that match the
  2869. argument are displayed. Wildcards can be used, see '#help regex' for
  2870. additional information on that subject.
  2871. If no argument is given, all subs are displayed.
  2872. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #sub {Zoe} {ZOE}
  2873. Any instance of Zoe will be replaced with ZOE.
  2874. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #sub {~&bsol;e[0;34m} {&bsol;e[1;34m}
  2875. Replace generic dark blue color codes with bright blue ones.
  2876. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #sub {%1massacres%2} {&lt;018&gt;%1&lt;118&gt;MASSACRES&lt;018&gt;%2}
  2877. Replaces all occurrences of 'massacres' with 'MASSACRES' in red.
  2878. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: See '#help action', for more information about triggers.
  2879. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: See '#help colors', for more information.
  2880. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: You can remove a substitution with the #unsubstitute command.
  2881. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#ACTION'>action</a>, <a href='#GAG'>gag</a>, <a href='#HIGHLIGHT'>highlight</a> and <a href='#PROMPT'>prompt</a>.
  2882. <a name='SUSPEND'></a>
  2883. </span><span style='color:#5F5'> SUSPEND
  2884. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #cursor suspend
  2885. Temporarily suspends tintin and returns you to your shell. To
  2886. return to tintin, type 'fg' at the shell prompt.
  2887. While suspended your tintin sessions will freeze. To keep a
  2888. suspended session running use the #detach command.
  2889. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#END'>end</a>
  2890. <a name='SWITCH'></a>
  2891. </span><span style='color:#5F5'> SWITCH
  2892. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #switch </span><span style='color:#FFF'>{</span><span style='color:#AAA'>conditional</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>arguments</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2893. The switch command works similar to the switch statement in other
  2894. languages. When the 'switch' command is encountered its body is parsed
  2895. and each 'case' command found will be compared to the conditional
  2896. argument of the switch and executed if there is a match.
  2897. When comparing strings both the switch and case arguments must be
  2898. enclosed in quote characters.
  2899. If the 'default' command is found and no 'case' statement has been
  2900. matched the default command's argument is executed.
  2901. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #switch {1d4} {#case 1 cackle;#case 2 smile;#default giggle}
  2902. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#STATEMENTS'>statements</a>
  2903. <a name='SYSTEM'></a>
  2904. </span><span style='color:#5F5'> SYSTEM
  2905. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #system </span><span style='color:#FFF'>{</span><span style='color:#AAA'>command</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2906. Executes the command specified as a shell command.
  2907. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#DETACH'>detach</a>, <a href='#SCRIPT'>script</a> and <a href='#RUN'>run</a>.
  2908. <a name='TAB'></a>
  2909. </span><span style='color:#5F5'> TAB
  2910. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #tab </span><span style='color:#FFF'>{</span><span style='color:#AAA'>word</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2911. Adds a word to the tab completion list, alphabetically sorted.
  2912. If no tabs are defined tintin will use the scrollback buffer
  2913. for auto tab completion.
  2914. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: You can remove a tab with the #untab command.
  2915. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#ALIAS'>alias</a>, <a href='#CURSOR'>cursor</a>, <a href='#HISTORY'>history</a>, <a href='#KEYPAD'>keypad</a>, <a href='#MACRO'>macro</a> and <a href='#SPEEDWALK'>speedwalk</a>.
  2916. <a name='TEXTIN'></a>
  2917. </span><span style='color:#5F5'> TEXTIN
  2918. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #textin </span><span style='color:#FFF'>{</span><span style='color:#AAA'>filename</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>delay</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2919. Textin allows the user to read in a file, and send its contents
  2920. directly to the server. Useful for doing online creation, or message
  2921. writing.
  2922. The delay is in seconds and takes a floating point number which is
  2923. cumulatively applied to each outgoing line.
  2924. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#SCAN'>scan</a> and <a href='#SEND'>send</a>.
  2925. <a name='TICKER'></a>
  2926. </span><span style='color:#5F5'> TICKER
  2927. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #ticker </span><span style='color:#FFF'>{</span><span style='color:#AAA'>name</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>commands</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>interval in seconds</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2928. Executes given command every # of seconds.
  2929. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: Tickers don't work in the startup session.
  2930. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: You can remove a ticker with the #unticker command.
  2931. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#DELAY'>delay</a> and <a href='#EVENT'>event</a>.
  2932. <a name='TIME'></a>
  2933. </span><span style='color:#5F5'> TIME
  2934. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #format </span><span style='color:#FFF'>{</span><span style='color:#AAA'>variable</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>%t</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>argument</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2935. The %t format specifier of the #format command allows printing dates
  2936. using the strftime() format specifiers. By default the time stamp used
  2937. is the current time, if you want to print a past or future date use:
  2938. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #format </span><span style='color:#FFF'>{</span><span style='color:#AAA'>variable</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>%t</span><span style='color:#FFF'>} {{</span><span style='color:#AAA'>argument</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>epoch time</span><span style='color:#FFF'>}}</span><span style='color:#AAA'>
  2939. The current epoch time value is obtained using #format {time} {%T}.
  2940. When using %t the argument should contain strftime format specifiers.
  2941. The output may differ depending on your locale.
  2942. %a Abbreviated name of the day of the week (mon ... sun).
  2943. %A Full name of the day of the week. (Monday ... Sunday)
  2944. %b Abbreviated name of the month (Jan ... Dec)
  2945. %B Full name of the month. (January ... December)
  2946. %C 2 digit numeric century. (19 ... 20)
  2947. %d 2 digit numeric day of the month (01 ... 31)
  2948. %H 2 digit numeric 24-hour clock hour. (00 ... 23)
  2949. %I 2 digit numeric 12-hour clock hour. (01 ... 12)
  2950. %j 3 digit numeric day of the year (001 ... 366)
  2951. %m 2 digit numeric month of the year (01 ... 12)
  2952. %M 2 digit numeric minute of the hour (00 ... 59)
  2953. %p Abbreviated 12 hour clock period (AM ... PM)
  2954. %P Abbreviated 12 hour clock period (am ... pm)
  2955. %S 2 digit numeric second of the minute (00 ...59
  2956. %u 1 digit numeric day of the week (1 ... 7)
  2957. %U 2 digit numeric Sunday week of the year (00 ... 53
  2958. %w 1 digit numeric day of the week (0 ... 6)
  2959. %W 2 digit numeric Monday week of the year (00 ... 53
  2960. %y 2 digit numeric year. (70 ... 38)
  2961. %Y 4 digit numeric year. (1970 ... 2038)
  2962. %z 5 digit timezone offset. (-1200 ... +1400)
  2963. %Z Abbreviated name of the time zone.
  2964. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#ECHO'>echo</a>, <a href='#EVENT'>event</a> and <a href='#FORMAT'>format</a>.
  2965. <a name='VARIABLE'></a>
  2966. </span><span style='color:#5F5'> VARIABLE
  2967. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #variable </span><span style='color:#FFF'>{</span><span style='color:#AAA'>variable name</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>text to fill variable</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  2968. Variables differ from the %0-99 arguments in the fact that you can
  2969. specify a full word as a variable, and they stay in memory for the
  2970. full session unless they are changed. They can be saved in the
  2971. coms file, and can be set to different values if you have two or
  2972. more sessions running at the same time. Variables are global for
  2973. each session and can be accessed by adding a &dollar; before the variable
  2974. name.
  2975. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #alias {target} {#var target %0}
  2976. #alias {x} {kick &dollar;target}
  2977. The name of a variable must exist of only letters, numbers and
  2978. underscores in order to be substituted. If you do not meet these
  2979. requirements do not panic, simply encapsulate the variable in braces:
  2980. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #variable {cool website} {http://tintin.sourceforge.net}
  2981. #chat I was on &dollar;{cool website} yesterday!.
  2982. Variables can be escaped by adding additional &dollar; signs.
  2983. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #var test 42;#showme &dollar;&dollar;test
  2984. Variables can be nested using brackets:
  2985. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #var hp[self] 34;#var hp[target] 46
  2986. You can see the first nest of a variable using &dollar;variable[+1] and the
  2987. last nest using &dollar;variable[-1]. Using &dollar;variable[-2] will report the
  2988. second last variable, and so on. To show all indices use *variable[].
  2989. To show all values use &dollar;variable[%*] or a less generic regex. To show
  2990. all values from index 2 through 4 use &dollar;variable[+2..4].
  2991. Nested variables are also known as tables, table generally being used
  2992. to refer to several variables nested within one specific variable.
  2993. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #show {Targets starting with the letter A: &dollar;targets[A%*]
  2994. To see the internal index of a variable use &amp;&lt;variable name&gt;. To see
  2995. the size of a table you would use: &amp;targets[] or &amp;targets[%*]. A non
  2996. existent nested variable will report itself as 0.
  2997. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #show {Number of targets starting with A: &amp;targets[A%*]
  2998. In some scripts you need to know the name of a nested variable. This
  2999. is also known as the key, and you can get it using *variable. For
  3000. example *target[+1]. To get the first variable's name use *{+1}.
  3001. It's also possible to declare a table using brace notation. Using
  3002. #var hp[self] 34 is the equivalent of #var {hp} {{self}{34}}. This
  3003. also allows merging tables. #var hp[self] 34;#var hp[target] 46 is
  3004. the equivalent of #var {hp} {{self}{34} {target}{46}} as well as
  3005. #var {hp} {{self}{34}} {{target}{46}} or if you want to get creative
  3006. the equivalent of #var hp[self] 34;#var {hp} {&dollar;hp} {{target}{46}}.
  3007. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: You can remove a variable with the #unvariable command.
  3008. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#CAT'>cat</a>, <a href='#FORMAT'>format</a>, <a href='#FUNCTION'>function</a>, <a href='#LOCAL'>local</a>, <a href='#MATH'>math</a>, <a href='#REPLACE'>replace</a> and <a href='#SCRIPT'>script</a>.
  3009. <a name='WHILE'></a>
  3010. </span><span style='color:#5F5'> WHILE
  3011. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #while </span><span style='color:#FFF'>{</span><span style='color:#AAA'>conditional</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>commands</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  3012. This command works similar to a 'while' statement in other languages.
  3013. When a 'while' command is encourated, the conditional is evaluated,
  3014. and if TRUE (any non-zero result) the commands are executed. The
  3015. 'while' loop will be repeated indefinitely until the conditional is
  3016. FALSE or the #BREAK or #RETURN commands are found.
  3017. The 'while' statement is only evaluated if it is read, so you must
  3018. nest it inside a trigger, like an alias or action.
  3019. The conditional is evaluated exactly the same as in the 'math' command.
  3020. </span><span style='color:#FFF'>Example</span><span style='color:#AAA'>: #math cnt 0;#while {&dollar;cnt &lt; 20} {#math cnt &dollar;cnt + 1;say &dollar;cnt}
  3021. </span><span style='color:#FFF'>Comment</span><span style='color:#AAA'>: See '#help math', for more information.
  3022. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#STATEMENTS'>statements</a>
  3023. <a name='WRITE'></a>
  3024. </span><span style='color:#5F5'> WRITE
  3025. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #write </span><span style='color:#FFF'>{</span><span style='color:#AAA'>&lt;filename&gt;</span><span style='color:#FFF'>} {</span><span style='color:#AAA'>[FORCE]</span><span style='color:#FFF'>}</span><span style='color:#AAA'>
  3026. Writes all current actions, aliases, subs, highlights, and variables
  3027. to a command file, specified by filename.
  3028. By default you cannot write to .map files to prevent accidentally
  3029. overwriting a map file. Use the FORCE argument to ignore this
  3030. protection.
  3031. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#LOG'>log</a>, <a href='#READ'>read</a>, <a href='#SCAN'>scan</a> and <a href='#TEXTIN'>textin</a>.
  3032. <a name='ZAP'></a>
  3033. </span><span style='color:#5F5'> ZAP
  3034. </span><span style='color:#FFF'>Command</span><span style='color:#AAA'>: #zap {[session]}
  3035. Kill your current session. If there is no current session, it will
  3036. cause the program to terminate. If you provide an argument it'll zap
  3037. the given session instead.
  3038. </span><span style='color:#FFF'>Related</span><span style='color:#AAA'>: <a href='#ALL'>all</a>, <a href='#PORT'>port</a>, <a href='#RUN'>run</a>, <a href='#SESSION'>session</a>, <a href='#SESSIONNAME'>sessionname</a>, <a href='#SNOOP'>snoop</a> and <a href='#SSL'>ssl</a>.