1.8.mods 52 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316
  1. 1999-2001 Davin Chan
  2. --------------------
  3. 6/21/01 Release tintin v1.85. -- dsc
  4. 6/8/01 Added a #show_pretick command. This will toggle on/off
  5. the #10 SECONDS TO TICK message, but it will still show
  6. the #TICK message.
  7. Changed: main.c, rltick.c, tintin.h, include/main.h,
  8. include/misc.h, misc.c, parse.c -- dsc
  9. 5/13/01 Removed the include/Makefile and include/Makefile.in.
  10. Deleted: include/Makefile, include/Makefile.in
  11. Changed: configure.in -- dsc
  12. 5/13/01 Added a TINTIN_HISTORY enviroment variable to set the
  13. location of the .tt_history file.
  14. Changed: main.c, rl.c -- dsc
  15. 5/13/01 Removed the -Iinclude from the Makefile.in and cleaned up
  16. referances to protos.
  17. Changed: Makefile.in, all .c files -- dsc
  18. 5/13/01 Added a check for an enviroment variable called TINTIN_CONF
  19. so that tintin will check for the tt.conf file at that
  20. location before checking for it in your home directory.
  21. Changed: chat.c -- dsc
  22. 5/13/01 Renamed the send_file command to tt_send_file to avoid
  23. a name conflict under AIX. Thanks to Yoon-Chan Jhi for
  24. pointing it out.
  25. Changed: chat.c, parse.c, include/chat.h -- dsc
  26. 4/3/01 Fixed the newline string that tintin sends. It really
  27. should be \r\n. Thanks to Emil Isberg for pointing
  28. that out. Left in the broken_telnet thing but I'm
  29. hoping it isn't needed anymore as tintin was sending
  30. out the wrong newline sequence.
  31. Changed: net.c -- dsc
  32. 3/28/01 Updated the FAQ.
  33. Changed: FAQ -- dsc
  34. 3/17/01 Renamed all of the protos directory to include and renamed
  35. all the proto files to .h. Updated all the .c files to
  36. reflect the change and updated the Makefile.in.
  37. Changed: all files -- dsc
  38. 3/17/01 Changed the BUFFERSIZE to 2048. And fixed the hard coded
  39. values in the protos to use the BUFFERSIZE value.
  40. Changed: tintin.h, protos/main.proto, protos/function.proto
  41. -- dsc
  42. 2/25/01 Commented out the SIGWINCH line in main.c that was
  43. spamming some people (appears to be only sun users).
  44. Need to investigate this when I some time.
  45. Changed: main.c -- dsc
  46. 12/29/00 Fixed some warnings messages by gcc with -Wall enabled.
  47. Changed: help.c, files.c, ivars.c, main.c, misc.c,
  48. path.c, rl.c, ticks.c -- dsc
  49. 12/29/00 Updated the readline.sh slightly to reflect the use
  50. of --includedir and --libdir instead of having
  51. to modify the Makefile.
  52. Changed: readline.sh -- dsc
  53. 12/28/00 Fixed a few warnings that appear on sun machines. And
  54. replaced usage of bzero with memset and assorted clean ups.
  55. Changed: scrsize.c, chat.c, net.c -- dsc
  56. 12/26/00 Released tintin v1.84. It's been a while since my
  57. last release. Pushing this out the door so that
  58. people can make use of some of the fixes. There
  59. are some rough spots that I need to tidy up, but
  60. there shouldn't be any problems. -- dsc
  61. 12/26/00 Updated the FAQ file.
  62. Changed: FAQ -- dsc
  63. 12/26/00 Added a toggle to enable and disable the saving of
  64. history. The command is #savehistory. This will
  65. need to be intergrated into the configuration file.
  66. Changed: main.c, misc.c, rl.c, tintin.h,
  67. protos/misc.proto, protos/rl.proto -- dsc
  68. 12/26/00 Fixed it so that tt.conf is looked for in the user's
  69. home directory instead of the current directory. The
  70. tt.conf file and the .tintinrc files need to be merged
  71. at some point so that there is only one configuration
  72. file.
  73. Changed: chat.c -- dsc
  74. 12/17/00 Removed some debug statements in the #ifstrequal command.
  75. Changed: ivars.c -- dsc
  76. 12/13/00 Added in saving of history. Tintin will write out a
  77. .tt_history file to your home directory and read that
  78. back in the next time you start up tintin. Keep in mind
  79. that it will write everything you enter as a command,
  80. including your character's password. You can do a
  81. #clearhistory to delete all the history as well. I'll
  82. probably make the saving of history optional as some
  83. may be parnoid and some may not have alot of space in their
  84. home directory to save a history of commands. Feedback
  85. on the usefulness of this feature would be welcome.
  86. Changed: main.c, tintin.h, rl.c -- dsc
  87. 11/07/00 Hmm, tintin regressed in respect to the broken_telnet fix.
  88. Seems that the fix for muds that wanted only \n instead of
  89. the standard \n\r was lost. I've reintergrated the fix, but
  90. I guess it really doesn't affect most users since it's been
  91. missing since 1.81.
  92. Changed: net.c -- dsc
  93. 11/07/00 Updated the install-sh script to reflect the change in the
  94. name of the chat.conf file to tt.conf. tt.conf will be
  95. a generic tintin configuration file. It's purpose will
  96. be to store custom configurations of tintin.
  97. Changed: install-sh
  98. Renamed: chat.conf -- dsc
  99. 11/07/00 Slight update to the INSTALL file to make it more clear on
  100. compiling tintin with non-standard locations of readline.
  101. Changed: INSTALL -- dsc
  102. 11/07/00 Put in a #include for stat.h that is needed for sun machines
  103. that wasn't needed on my linux box.
  104. Changed: chat.c -- dsc
  105. 10/09/00 Relocated the chat.conf file to the src/support directory
  106. and updated the install-sh script to reflect that.
  107. Changed: install-sh
  108. Moved: chat.conf -- dsc
  109. 10/09/00 Fixed the problem with + - in the math function that
  110. was reported by Kuang-che Wu. Let me know if the #math
  111. function does anything strange. The original (buggy) math
  112. is still available via the #fixedmath toggle, but by default
  113. it will use correct math.
  114. Changed: ivars.c -- dsc
  115. 10/03/00 Updated the install-sh script so that it will install the
  116. chat.conf file in the same location as your tintin helpfile.
  117. Changed: install-sh -- dsc
  118. 10/03/00 Updated the FAQ and added some comments to the chat.conf
  119. file.
  120. Changed: FAQ, chat.conf -- dsc
  121. 10/02/00 Added a new configure option, --enable-big5. This allows
  122. users to select Big5 encoding without needing to manually
  123. edit the Makefile.
  124. Changed: configure.in, Makefile.in, INSTALL -- dsc
  125. 10/02/00 Small update to the FAQ file.
  126. Changed: FAQ -- dsc
  127. 09/27/00 Cleaned up chat.c some. Removed some un-needed header
  128. files. Mac OS X can compile tintin now.
  129. Changed: chat.c -- dsc
  130. 09/27/00 Added misc patches by Kuang-che Wu.
  131. Changed: misc.c, rl.c, net.c -- dsc
  132. 09/27/00 Added support for Big5 encoding. This has not been
  133. tested by myself nor do I have any method of testing it.
  134. This was sent to me by Kuang-che Wu. Current, you need
  135. to manually edit the Makefile to have a -DBIG5 to the DEFINES
  136. line. If you have language specific patches, I will be
  137. willing to add them as well, but you must provide me with
  138. the code to be be added.
  139. Changed: action.c, parse.c, variables.c, functions.c -- dsc
  140. 09/16/00 Fixed the typo with the checking for ncurses and curses.
  141. Changed: configure.in -- dsc
  142. 09/10/00 Replaced DST_NONE with 0 as not all machines have that
  143. defined.
  144. Changed: chat.c -- dsc
  145. 09/07/00 Released tintin v1.83 -- dsc
  146. 09/07/00 Made it so that tintin will check first for termcap, then
  147. check for curse and then for ncurse. Hopefully that will
  148. resolve the problem some people having with the tgetent.
  149. Changed: configure.in -- dsc
  150. 09/07/00 tintin will check for a TINTIN_HELP environment variable.
  151. This will allow you to get tintin to check a shared tintin
  152. help file. All you need to do is to set the TINTIN_HELP
  153. variable to the directory your help file is located.
  154. Changed: help.c -- dsc
  155. 09/06/00 Found a error with the install-sh script. The script would
  156. FAIL. Fixed the problem with it.
  157. Changed: install-sh -- dsc
  158. 09/03/00 Corrected a bug with the #random function. asd@scene-hu.com
  159. provided the one line fix.
  160. Changed: misc.c -- dsc
  161. 08/26/00 Corrected a bug with the install.sh script. There was
  162. a typo in the installing gzip version of the help files.
  163. Decided that the dl directory isn't needed in the tintin++
  164. directory. Users should create a dl or change the download
  165. location in the chat.conf file.
  166. Changed: install.sh
  167. Deleted: dl directory -- dsc
  168. 08/25/00 Fixed the problem of HP-UX not linking because of the
  169. order of the libraries. Put -lreadline before everything
  170. else. Also put in -lhistory for the history stuff. It
  171. seems that my compiler isn't as picky as others and allowed
  172. me to link without the -lhistory.
  173. Changed: Makefile.in -- dsc
  174. 08/16/00 Released tintin v1.82 -- dsc
  175. 08/16/00 Movied the MODIFICATIONS and MOD.ycjhi files into the docs
  176. directory.
  177. Moved: MODIFICATIONS, MOD.ycjhi -- dsc
  178. 08/16/00 Added a FAQ file. Hopefully it will answer some of the most
  179. commonly asked questions.
  180. Added: FAQ -- dsc
  181. 08/12/00 Added an ENABLE field to the chat.conf file. It is enabled
  182. by default, but you can turn off the chat feature by setting
  183. the value of ENABLE to 0. There still isn't all that much
  184. error checking with the chat features, which will be
  185. corrected in the future.
  186. Changed: main.c, rl.c, chat.c -- dsc
  187. 07/25/00 Cleaned up all the warnings in chat.c.
  188. Changed: chat.c -- dsc
  189. 07/21/00 Updated the .tt_help.txt file with the new chat commands.
  190. Also added in a helpversion entry, this just lists the date
  191. the helpfile was last modified to track which version of
  192. the helpfile that is installed. Make sure you do a make
  193. install to update your help files.
  194. Changed: support/.tt.help.txt.Z -- dsc
  195. 07/20/00 With the addition of chat, the encryption code that I hacked
  196. together is really not needed. I've removed the code for it
  197. as chat looks to be a nicer command than my ugly encrypt code.
  198. If people really want it, let me know and I'll put it back
  199. in, but I don't think it's really needed.
  200. Changed: misc.c, protos/misc.proto, parse.c -- dsc
  201. 07/20/00 chat has been added. This is very similiar to using an instant
  202. messager program or using irc. The chat feature is compatiable
  203. with mudmaster (or it should be). The code is by Sean Butler.
  204. I tried to contact him about the use of his code, but could
  205. not contact him. And I am assuming he would allow for the use
  206. of his code unless notified otherwise. Added him to the
  207. credit file. The code needs alot of clean up and modifications
  208. still, but the basic functionality is all there. Currently,
  209. it will try to figure out your IP address, unless you set
  210. it in your chat.conf file. To start a chat, you would do
  211. a #call <ip address>. Once you have connected, you can do a
  212. #chat <person's name> <message>. You can also do a #chatall
  213. to send a message to everybody your connected to. Bug me to
  214. write up some docs on it, but the commands should be pretty
  215. straight forward (take a peek in the chat.c for a list of
  216. commands). You can also transfer files (I personally
  217. haven't tested it).
  218. Added: chat.c -- dsc
  219. Created: protos/chat.proto -- dsc
  220. Changed: CREDITS, main.c, rl.c, parse.c -- dsc
  221. 07/16/00 Added a --libdir to configure. This is needed if you don't
  222. have your libraries (readline) in standard library locates.
  223. This change is kind of a hack since I need to hardcore
  224. the -lreadline in the Makefile.in, but since you can't really
  225. use tintin without readline, having it hardcoded isn't a
  226. problem. Need to play with autoconf more to see if there
  227. is a better solution.
  228. Changed: configure.in, Makefile.in, INSTALL -- dsc
  229. 07/06/00 Added a #clearhistory command. This will clear out your
  230. history of commands entered.
  231. Changed: parse.c -- dsc
  232. 07/06/00 Added a BUG and TODO file. This is to let everybody know
  233. what I think are bugs and what I plan on working. If you have
  234. any input on bugs or things you would like to see added to
  235. tintin, feel free to let me know.
  236. Added: BUGS, TODO -- dsc
  237. 07/05/00 Worked some on the bindkey command. It doesn't do anything
  238. really, but I spent some time playing with readline and now
  239. have a better idea of how to get it to work.
  240. Changed: bindkey.c, protos/bindkey.proto -- dsc
  241. 06/23/00 Fixed a bug with the #read and #newread. They both
  242. would fail if your command file contain any blank lines.
  243. Changed: files.c -- dsc
  244. 06/23/00 I've decided to move the #read command now to be
  245. #newread and move the #oldread back as the default #read
  246. command. If you wish to use the multi-line code, use the
  247. #newread command. After it's been tested a while, I will
  248. make it the default #read command.
  249. Changed: parse.c, files.c, protos/files.proto -- dsc
  250. 06/23/00 Added in the fixes for functions submitted by Kaung-che Wu.
  251. Functions still need work though.
  252. Changed: variables.c, protos/variables.proto, function.c -- dsc
  253. 06/22/00 Cleaned up the install-sh script a bit.
  254. Changed: install-sh -- dsc
  255. 06/22/00 Played more and now you can select the default directory
  256. tt++ is put. It will default to the src directory. Like
  257. the --includedir, you change the bindir by doing a
  258. ./configure --bindir=<where you want it>.
  259. Example:
  260. You want to put tt++ in ~/bin
  261. ./configure --bindir=~/bin
  262. make
  263. make install
  264. Changed: Makefile.in, configure.in, INSTALL -- dsc
  265. 06/22/00 I've played with the autoconf some and made some improvements
  266. to it. If you put readline in a non-standard directory
  267. (ie not in /usr/local/include), you can specify that with
  268. ./configure --includedir=<location>.
  269. For example, if you put the readline library in say
  270. tintin/src/readline. Then in the tintin/src directory,
  271. you can do a ./configure --includedir=. (current directory).
  272. Another example, if you put readline in /tmp/readline,
  273. you can do a ./configure --includedir=/tmp
  274. As you need to put in the parent directory of the readline
  275. directory.
  276. Changed: Makefile.in, configure.in, INSTALL -- dsc
  277. 06/19/00 I've added some missing code for functions that
  278. was submitted by Kuang-Che Wu.
  279. Changed: llist.c, files.c -- dsc
  280. 06/18/00 I've enabled the fixed_math by default now. This probably
  281. will not affect most tintin users, but if you use / or *
  282. you may be affected and may want to either change your
  283. script or to use the #fixedmath to disable it.
  284. Changed: tintin.h -- dsc
  285. 06/18/00 Put in a fix to a crash bug with verbatim when you don't
  286. have a session. Thanks to Kuang-che Wu for the bug
  287. report and fix.
  288. Changed: parse.c -- dsc
  289. 06/18/00 Made a fix to the #message command. It was not listing out
  290. the different message toggle-ables and made some slight
  291. improvements to it.
  292. Changed: misc.c -- dsc
  293. 06/18/00 Did further testing and I found a work around. I'll look
  294. into this problem further when I get a chance, but the
  295. working will allow people to use the #crypt and #decrypt
  296. functions. Added an example of how to make use of it
  297. in the docs/example1.script file. Somebody probably can
  298. write a something better, but it does work. If anybody
  299. wants to write better examples (with explainations) I
  300. would be happy to include them. Also if you use it, you
  301. may want to disable the variable messages (#message variable
  302. off) to reduce the spam (it is on by default). -- dsc
  303. 06/09/00 Modified the #crypt and #decrypt functions. They currently
  304. used a fixed key, but will change that soon. I had to change
  305. the way it was set up because I was trying to do it the lazy
  306. way and use the ASCII character set table. The old function
  307. mostly worked, but for some keys it would give you funky
  308. results.
  309. The work around noted in the previous entry does not work.
  310. I will need to fix the bug for these commands to be useful.
  311. The problem is in the parser.
  312. Changes: misc.c -- dsc
  313. 06/03/00 Added a #crypt and a #decrypt function for "encrypting" text.
  314. I remember seeing a tintin script that did this ages ago
  315. on the newsgroup. I decided to implement the code into
  316. tintin. Although shortly this code will not be so useful
  317. with the incoming chat feature, but this feature might be
  318. fun to use to annoy imms with *polishes his halo* :)
  319. It's extremely simple, but it should be more than enough to
  320. ensure nobody that you don't want to read the text will.
  321. The syntax is:
  322. #crypt <text to encrypt> <variable to store result>
  323. #decrypt <text to decrypt> <variable to store result>
  324. Currently, the key used to encrypt the data is a fixed key,
  325. but will add in a feature to change the key.
  326. This works fine except I seem to hit a bug when testing
  327. the feature. The bug is that tintin will substitutue
  328. everything in an alias with multiple commands
  329. #alias {ereply} {#crypt {$$0} {bleh}; reply $bleh}
  330. however
  331. #alias {ereply}
  332. {#unvar {$bleh} #crypt {$$0} {bleh}; reply $bleh}
  333. will work fine.
  334. I will probably fix this bug at a future date, but it looks
  335. to be a bit mess/large change to fix in a critical function.
  336. And it would be far to easy to introduce new bugs there.
  337. Changed: misc.c, protos/misc.proto, parse.c -- dsc
  338. 05/29/00 Added the option of stripping the binary in the install-sh
  339. script. Striping will produce a smaller execuatable, but it
  340. makes it harder to debug. But most people will not need to
  341. debug tintin and would probably want to strip tt++.
  342. Changed: install-sh -- dsc
  343. 05/29/00 *cough* hacked a*cough* Fix to the issue #2 (see 5/5/00 entry)
  344. with the new read_command(). The read_command function will
  345. ignore any line that starts with a "#nop" and will not parse it
  346. so it will not care about unbalanced braces. I probably will
  347. look for a better fix/rewrite the code in the future. This
  348. should resolve all the problems with the read_command.
  349. Changed: files.c -- dsc
  350. 05/27/00 Put in Yoon-Chan Jhi's fix to the syserr(). This should solve
  351. solve the problem some people have with compiling tintin.
  352. Changed: utils.c -- dsc
  353. 05/23/00 Made a few some modifications to the configure.in script to
  354. hopefully make it more informative when running ./configure.
  355. Changed: configure.in -- dsc
  356. 05/05/00 Fixed the problem with the read_command() not taking
  357. commands with no arguments (ie #fixedmath).
  358. Changed: files.c -- dsc
  359. 05/05/00 Ran dos2unix on the example2.script. This solves part
  360. of the problem, with the new read_command(), but still
  361. have the following issues. 1) it will not allow
  362. unbalanced braces in #nop. 2) it will not take commands
  363. with no arguments (ie #fixedmath).
  364. Changed: docs/example2.script -- dsc
  365. 05/05/00 Modified the translate_telnet_protocol() to be a void
  366. function. There really isn't a need for it to return
  367. anything.
  368. Changed: net.c, protos/net.proto -- dsc
  369. 04/30/00 Released tintin v1.81. I want to push it out now or else
  370. it would probably be another 3+ weeks and I've promised to
  371. put this out within a week or two (and it's been like 2 1/2
  372. weeks now). -- dsc
  373. 04/30/00 Tracked down a problem I was having connecting to a mud
  374. server. tintin was just kicking me out at the same point.
  375. This was due to a change in the read_mud_buffer to use
  376. the new translate_telnet_protocol(). I've put in a fix for
  377. it, but I'll probably redo the fix later.
  378. Changed: net.c -- dsc
  379. 04/30/00 Made a bug fix to the read_command function. If your
  380. command file only contained a "#ses {l} {localhost 4000}"
  381. It wasn't connecting when you started up tintin or when
  382. you #read your command file.
  383. Changed: files.c -- dsc
  384. 04/29/00 I've included the sample tintin command file that Greg
  385. Milford sent me as it's a nice demostration of how to use
  386. tintin. This may be useful to people in learning how to
  387. make the best use of tintin.
  388. Created: docs/example2.script (the script by Greg)
  389. Renamed: docs/example.script to docs/example1.script -- dsc
  390. 04/29/00 I've intergrated a change to the read_command function by
  391. Greg Milford. The change allows for multi-line command
  392. files. See the docs/example.script for how it will look.
  393. The only downside to the change is that you must use braces
  394. ie #alias a {say blah} will not work, you need to do
  395. #alias {a} {say blah}. The read_command will try to recover
  396. from commands that are not written correct by ignore it and
  397. everything after the error and then return to tintin.
  398. So if you have 10 aliases and tintin says that it read in 5
  399. aliases, then tintin didn't like your 6th aliases you wrote
  400. and you should go check it. I've kept the old #read command
  401. as #oldread if you really want to use that, but it will
  402. probably be removed at a future date.
  403. Changed: files.c, protos/files.proto, CREDITS,
  404. docs/example.script -- dsc
  405. 04/29/00 I've updated the tintin help file so that it now includes
  406. all the tintin commands. Some of the tintin help files are
  407. a *cough* bit sparse, but they are now listed :) I still
  408. need to update the manual and some of the entries in the
  409. tintin help file needs to be expanding (just a tinnie bit ;))
  410. Changed: support/.tt_help.Z -- dsc
  411. 04/12/00 Put in Yoon-Chan Jhi's change to #ifmatch. The only real
  412. change is that it no longer has an else keyword. This
  413. matchs the syntax of other tintin commands.
  414. Changed: ivars.c -- dsc
  415. 04/09/00 Cleaned up some warning.
  416. Changed: walk.c, session.c -- dsc
  417. 04/09/00 I've added an example.script in the tintin/docs directory.
  418. This includes some basic examples (which I will expand on
  419. when I have more time) and it includes Yoon-Chan Jhi's
  420. auto reconnect script.
  421. Created: docs/example.script -- dsc
  422. 04/09/00 I've put in all of Yoon-Chan Jhi's changes which includes
  423. a zMud-like slow walk function (I don't know, I never used
  424. zMud before), an auto reconnect feature. I'm testing them
  425. to make sure I've gotten everything that he submitted to me
  426. working correctly There were alot of changes and hopefully
  427. some changes didn't slip by me. I've made some minor
  428. modifications to his code, but they were very limited
  429. at this point. (Don't ask me what they were, cuz I don't
  430. remember :))
  431. Created: walk.c, protos/walk.proto
  432. Changed: net.c, session.c, tintin.h, parse.c -- dsc
  433. 04/08/00 Put in Yoon-Chan Jhi's change to connect_mud so that the
  434. error messages would be more helpful than just couldn't
  435. connect. Didn't know about the strerror() till now.
  436. Learned something :)
  437. Changes: net.c -- dsc
  438. 04/08/00 It's amazing what you can learn if you read :) According,
  439. to man (3) bcopy, bcopy has been deprecated. So that explains
  440. why some compilers give you those problems when compiling
  441. with the -O2 flag. This was chitchat's suggestion on how
  442. to solve the problem, but I wasn't comfort just commenting
  443. out the use of a function to silence a compiler warning. But
  444. on further research saw that bcopy was deprecated. In light
  445. of that, I've added back in -O2 flag and I've removed the
  446. use of bcopy. I've also updated the configure script to
  447. stop checking for bcopy since it isn't used anymore.
  448. Changes: Makefile.in, tintin.h, configure -- dsc
  449. 04/08/00 Added chitchat and Yoon-Chan Jhi to the credits file for
  450. their contributions to tintin.
  451. Changes: CREDITS -- dsc
  452. 04/05/00 I've added in ycjhi's change to read_buffer_mud, which
  453. fixes the problem with tintin sometimes eating a
  454. character after getting an GA. As a note the GA
  455. sequence will send a \n in tintin to solve an
  456. occassion problem with actions not being triggered.
  457. The code, except for minor modifications, were done by
  458. Yoon-Chan Jhi.
  459. Changes: net.c, protos/net.c -- dsc
  460. 04/05/00 Changed the tickset command so that the code and
  461. the manual both agree with each other. According
  462. to the manual tickset will turn on the timer if it's
  463. not on, but the code doesn't do that. Now it will.
  464. This is minor, but the code and manual should agree
  465. with each other, or what's the point of the manual if
  466. it's wrong?
  467. Changed: ticks.c -- dsc
  468. 04/03/00 Changed the ticksize command so that you will need to
  469. enter a number between 1 and 1000. You previous could
  470. crash tintin because it would try to divide by 0. There
  471. isn't any reason why you would want to set your ticksize
  472. to zero unless you wanted to crash tintin :P So 1 to 1000
  473. should be a suitable range. Let me know if there is a reason
  474. why you would want to have anything outside that range.
  475. Changed: ticks.c -- dsc
  476. 03/08/00 Added a bindkey.proto and a bindkey.c file for the
  477. future bindkey command. This will be for binding keys to
  478. a command. ie #bindkey {f1} {<command>}. This doesn't do
  479. anything yet.
  480. Created: bindkey.proto and bindkey.c -- dsc
  481. 02/23/00 Fixed a bug with the parsing of input. It would display the
  482. wrong value, but the result is correct.
  483. If you did the following:
  484. #var {a} {1}
  485. #math {a} {$a+1};#showme $a
  486. This would show you 1 and not 2. The value stored in $a is
  487. correct, but it would display 1. It will now show the correct
  488. value 2. Thanks to aladrin@elven.comm.au for the bug report.
  489. Changed: parse.c, protos/parse.proto -- dsc
  490. 02/23/00 Removed the -ansi flag from the Makefile and removed the
  491. declaration of popen and pclose and made asorted cleanup
  492. of things that were hacks/bad ideas.
  493. Changed: Makefile.in, protos/help.proto, misc.c -- dsc
  494. 02/19/00 Added in the brokentelnet value to the #info command.
  495. 02/12/00 Released tintin v1.80 -- dsc
  496. 02/12/00 Verified that the fix for CR/LF worked on the test mud listed
  497. on the webboard.
  498. 02/09/00 I think I corrected the problem with CR/LF with certain muds.
  499. Please let me know if I did/or didn't. Do a #brokentelnet
  500. to enable it to test.
  501. Changed: net.c, misc.c, main.c, parse.c, protos/misc.proto,
  502. protos/main.proto -- dsc
  503. 12/26/99 Updated the README and the doc/sgi files
  504. Changed: README, doc/sgi -- dsc
  505. 12/26/99 Increased the buffer for #textin for people that need to
  506. read in a large text file. Didn't increase all buffers
  507. since that may be a waste of memory, but for #textin you
  508. may need more than 1024 so I've increased it to 4096.
  509. Problem was brought to my attention by chitchat's ytin.
  510. Changed: text.c -- dsc
  511. 12/26/99 Fixed the math command completely (I think, let me know
  512. if i'm wrong). You *MUST* have #fixedmath 1 set for
  513. you to use the new math, or else it will continue to use
  514. the old broken math. Eventually, this will be the default
  515. but for now, you will have to enable it. Fix came
  516. from chitchat's ytin. With the fixed math, you will
  517. get 4 from #math {a} {6/3*2}. With the old math, you
  518. will get 1 from #math {a} {6/3*2}.
  519. Changed: ivars.c, protos/ivars.proto -- dsc
  520. 12/21/99 Ahh, gotta love short-circuit evalation :) Fixed a
  521. crash bug. If you did a #message 1, it will crash.
  522. It's fixed now. Who says it doesn't pay to be lazy? :)
  523. Changed: misc.c -- dsc
  524. 12/19/99 Added Fixed Math to the #info output.
  525. Changed: misc.c -- dsc
  526. 12/18/99 Added a new command to enable and disable the math
  527. code (will also be used for priority on math symbols when
  528. I add in that code). THE DEFAULT IS TO USE THE BROKEN
  529. CODE. To enable the fixed math code do a #fixedmath.
  530. Eventually, I will make it default to fixedmath on, but
  531. for now, I'll keep it at off.
  532. Changed: main.c, parse.c, misc.c, protos/main.proto,
  533. protos/misc.proto -- dsc
  534. 12/18/99 Looked at the #math {x} {$x+1} problem. I've decided
  535. to just return an error instead of initializing the
  536. undefined variable to 0. No answer is better than a wrong
  537. answer in my opinion. If tintin automatically creates a
  538. variable, typos would create new variables and people would
  539. wonder why it kept failing. This way, there is no doubt,
  540. that something is wrong with the math expression. This
  541. should save people time trying to debug their scripts
  542. looking for why their math call always returns the same
  543. (wrong) value.
  544. #math {x} {$x+1} -> old math will create and set x to zero
  545. -> new math will error and not create a
  546. variable
  547. Changed: ivars.c, protos/ivars.proto -- dsc
  548. 12/17/99 Added a sanity check for values entred for #sleep, #timetry
  549. #tries.
  550. Changed: misc.c -- dsc
  551. 12/17/99 Added in the code for #sleep. The syntax is #sleep <time
  552. in seconds>. I thought there was a command like this but
  553. I guess I was wrong. Idea came from chitchat's version
  554. of tintin, but the implementation is different.
  555. Changed: misc.c parse.c protos/misc.proto --dsc
  556. 12/12/99 Added #tries and #timetry for changing the default values
  557. of the number of tries tintin will make and the time between
  558. tries. The defualt is still 10 tries at 10 seconds apart.
  559. Also fixed some wrong messages with the reconnect code.
  560. Changed: parse.c, main.c, session.c, misc.c,
  561. protos/main.proto, protos/misc.proto -- dsc
  562. 12/12/99 Removed the TODO and ChangeLog files from the src directory.
  563. Appended ChangeLog file to CHANGES.
  564. Deleted: TODO and ChangeLog -- dsc
  565. 12/12/99 Slight update to INSTALL doc.
  566. Change: INSTALL -- dsc
  567. 12/9/99 Added externs for popen and pclose. These should not be
  568. needed, but for some reason the compiler doesn't think that
  569. these two functions have been defined yet. It's odd since
  570. these are defined in system header files. I've put in a
  571. hack that removes the warning messages, but I shouldn't
  572. have had those warning messages in the first place since
  573. the header file was included. Will look into that some
  574. more later. This also makes MIPS Pro C compiler (IRIX)
  575. happier when trying to compile tintin.
  576. Changed: protos/help.proto -- dsc
  577. 12/3/99 Made a change so that if you have two different string
  578. header files (string.h and strings.h) it will default to
  579. string.h and not try use both.
  580. Changed: variables.c -- dsc
  581. 11/28/99 Check to see if ctype.h is found in the configure script.
  582. Changed: configure.in and all files that use ctype.h -- dsc
  583. 11/28/99 Released tintin v1.79 -- dsc
  584. 11/27/99 Made some more changes to the install-sh script. The
  585. tintin archive will only contain a .Z help file but if you
  586. have gzip or bzip2 in your path, it will convert the helpfile
  587. to that compressed format and install that in your home
  588. directory.
  589. Changed: install-sh -- dsc
  590. 11/21/99 Made some changes to the make install so that it will
  591. select the help file to install based on if you have bzip2,
  592. gzip, or uncompress.
  593. Changed: install-sh -- dsc
  594. 11/21/99 Added support for bzip2 help files. It will check for help
  595. files in the following order: uncompressed, .bz2, .gz, .Z
  596. Bzip2 has better compression than .gz but is slightly slower.
  597. So if you want the help files and are short on space, bz2 is
  598. the way to go.
  599. Changed: tintin.h help.c -- dsc
  600. 11/20/99 Minor change to the help command so that it reads press
  601. return and not any key when the help file will not fit
  602. all of the help section in the screen.
  603. Changed: help.c -- dsc
  604. 11/20/99 Restructuring some of the code and still is a work in
  605. progress.
  606. Changed: most if not all files -- dsc
  607. 11/19/99 Fixed some warning messages.
  608. Changed: function.c, variables, rl.c -- dsc
  609. 11/17/99 Added a reconnect feature the tintin. If tintin can not
  610. connect to a mud, it will continue to retry 10 times every
  611. 10 seconds. The retry amount and time between retries
  612. can be adjusted. The idea came from tintin v1.5pl9,
  613. which came from Snarf. However, it was coded differently
  614. from v1.5pl9.
  615. Changed: session.c -- dsc
  616. 11/15/99 Released tintin v1.78 -- dsc
  617. 11/15/99 Fixed a bonehead (and I mean a really bonehead) crash bug.
  618. No idea how long it's been there. But #unvar will stop
  619. crashing tintin now.
  620. Changed: variables.c -- dsc
  621. 11/14/99 Made a minor changes to the Makefile.in so that it is more
  622. friendly to non gnu make.
  623. Changed: Makefile.in -- dsc
  624. 11/08/99 Released tintin v1.77 -- dsc
  625. 10/28/99 Fixed a warning about main not returning an int.
  626. Changed: main.c protos/main.proto -- dsc
  627. 10/28/99 Fixed the void value not ignored as it ought to be
  628. message. There seems to be a problem with gcc and -O
  629. that is generating this problem. Decided to remove the
  630. optimizing for now. Will research into this more when
  631. I get a chance.
  632. Changed: Makefile.in -- dsc
  633. 10/24/99 Fixed the bug with having to put quotation marks around
  634. everything you typed in. Fixed the bug by reverting to
  635. strncpy, strncat instead of using memcpy.
  636. Changed: parse.c -- dsc
  637. 10/23/99 Fixed a problem with an extra new line being added to the
  638. prompt if you don't use split mode.
  639. Changed: rl.c -- dsc
  640. 1998-1999 Robert Ellsworth
  641. --------------------------
  642. 03/24/99 Well.. I kinda had that split line bug fixed. Thanks to Magnus
  643. Oberg, I was able to hopefully fix it completely. We'll just
  644. have to see how this works.
  645. CHANGED: rl.c --rse
  646. 03/17/99 Happy St. Pat's Day!!! Well, I think I got that line split bug
  647. by the @#$@ this time. It was a bug in how I handle the
  648. multiplexing of file descriptors. Well.. Try this and please
  649. let me know how it goes for you.
  650. Changed: rl.c -- rse
  651. 3/16/99 Fixed a bug in the prompt on split line code.
  652. Changed: rl.c parse.c -- rse
  653. 3/7/99 Well, I've decided to take Happy's mods, and add almost all of
  654. them. Some were re-coded by myself, the rest was just ported
  655. from his version to mine. Thanks to Sverre Normann for his
  656. modifications, and allowing me to use them. I've included his
  657. MODIFICATIONS file, for explainations on what he's done.
  658. Changed: main.c, variables.c, function.c, parse.c, ivars.c
  659. misc.c --rse
  660. 3/5/99 Started to make additions that Happy (Iny), made to his mod'ed
  661. version of v1.61. This go-around I just added code for the
  662. #ifstrequal command. This is how it'll work... (Quoted from
  663. Happy's Modification page)
  664. Command: ifstrequal - string comparisment (NEW)
  665. Syntax: #ifstrequal {str1} {str2} {dothis} else {dothis2}
  666. Example: #alias {tell} {#ifs {$1} {$whoami} {#showme [Tell
  667. to self]: %0} else {Tell %0}}
  668. 3/3/99 Addition #2 - Added the ability to have a mud prompt be
  669. displayed on the status line of a split session.
  670. Good for those fights that scroll the screen like a bat out
  671. of hell.
  672. To set the prompt, it'll search incoming text like an action.
  673. #setprompt {^HP: %1 MV: %2 MANA: %3} would be used to set
  674. a trigger to grab mud prompts like:
  675. HP: 15/100 MV: 99/105 MANA: 94/117
  676. It will display that prompt on the status line.
  677. #clearprompt removes the printing of the prompt.
  678. If a prompt was set, it will be saved with ANY coms file you
  679. write. The only way a prompt will not be saved with a coms
  680. file is if you issue a #clearprompt first.
  681. Changed: main.c, files.c, parse.c, misc.c, rl.c -- rse
  682. 3/3/99 Added a #random function. The syntax will be:
  683. #random {variable name} {x}
  684. It will generate a random # from 1 to x, and store that value
  685. in {variable name}. Now I have to work on, if it's possible,
  686. #case statement so that you can do random things off this
  687. result.
  688. Changed: parse.c, misc.c, tintin.h -- rse
  689. 2/27/99 Yes, once again, time flew, but with the resurgance of a
  690. healthy laptop, and work finally slowing down, things are
  691. beginning to look good for progress on the project once
  692. again. I've made some changes to the Makefile.. It should
  693. now compile just fine under Redhat 5.2. I've decided to
  694. remove the Readline v2.0 library that was packaged with v1.65.
  695. Most Unicies have Readline installed. If for some reason it
  696. isn't, you can FTP if from any GCC archive. Gripe me if you
  697. can't find readline, and install it. I will try to help as
  698. best I can.
  699. Changed: Makefile.in, removed readline -- rse
  700. 7/27/98 My lord.. Yes.. Time flies.. Well, work has begun on the
  701. Tintin++ project again. I've got a fix here that'll
  702. hopefully help out those linux users who would have the
  703. program core if you did a #end in the middle of a session.
  704. Changed: rl.c -- rse
  705. 1998-1999 Sverre Norrman
  706. ------------------------
  707. List of modifications done by Happy Iny.
  708. *** New and modified commands:
  709. Command: loop - added evaluation of the parameters (MODIFIED)
  710. Syntax: #loop {a,b} {do this}
  711. Example: The update means that the following line now works
  712. #loop {$a,$b} {#shomwe %0}
  713. provided 'a' and 'b' are variables which contain numbers.
  714. Command: ifexists - checks if a variable exists or not (NEW)
  715. Syntax: #ifexists {varname} {do this} else {do this instead}
  716. Example: #ife {leader} {say My leader is $leader!} else {say I have no leader!}
  717. Command: ifmatch - checks a string for a mask containing text and *'s (NEW)
  718. Syntax: #ifmatch {mask} {string} {do this} else {do this instead}
  719. Example: #ifm {*Iny*} {This is a test string: Iny!} {#shomwe Works fine!} else {#showme Call 911 - the procedure
  720. doesn't work!}
  721. Command: ifstrequal - string comparisment (NEW)
  722. Syntax: #ifstrequal {string1} {string2} {do this} else {do this instead}
  723. Example: #alias {tell} {#ifs {$1} {$whoami} {#showme [Tell to self]: %0} else {Tell %0}}
  724. Command: getvarvalue - get the contents of a variable (NEW)
  725. Syntax: #getvarvalue {dest var} {source var}
  726. Example: #getv {numberofmobs} {mobThe Spirit Guard}
  727. Info: The variable name can contain any character; not just alpha chars!
  728. This function was made more or less redundant when I introduced the
  729. improved naming of variables by allowing brackets around the name.
  730. ( ${variablename} ). But it's kept for compability with earlier
  731. comfiles.
  732. Command: revstring - reverses a string/stores it backwards (NEW)
  733. Syntax: #revstring {dest var} {string}
  734. Example: #revs myname Happy Iny <-- stores 'ynI yppaH' in the variable 'myname'
  735. Command: postpad - pads a variable with spaces AFTER given text until variable
  736. is of desired length (truncates if too long) (NEW)
  737. Syntax: #postpad {dest var} {length} {text}
  738. Example: #postpad mobname 15 A huge, ancient tree, walking on giant roots,
  739. #postpad myname 15 Iny
  740. Command: postpad - pads a variable with spaces BEFORE given text until variable
  741. is of desired length (truncates if too long) (NEW)
  742. Syntax: #prepad {dest var} {length} {text}
  743. Syntax: #prepad mobname 15 A huge, ancient tree, walking on giant roots,
  744. #prepad myname 15 Iny
  745. *** Commands which can be used to simulate lists/arrays:
  746. I've defined a list the following way:
  747. 1. is a textstring
  748. 2. contains any number of elements
  749. 3. each element is either ONE word OR enclosed in a set of brackets
  750. Examples:
  751. #var alignlist {evil neutral good} <--- creates a list with 3 elements: 1. evil, 2. neutral, 3. good
  752. #var rndsocial {smile {say WHEE!} bounce} <---- creates a list with 3 elements: 1. smile, 2. say WHEE!, 3. bounce
  753. The following commands have been created to allow manipulations of lists:
  754. Command: getlistlength - returns the length of a list (NEW)
  755. Syntax: #getlistlength {dest var} {list}
  756. Example: #getl Length {$alignlist} <--- returns 3 in the Length variable
  757. Command: getitemnr - retrieves specified element from a list (NEW)
  758. Syntax: #getitemnr {destination variable} {item number} {list}
  759. Example: #geti {dothis} {2} {smile {say Hi!} flip bounce} <--- sets dothis to 'say Hi!'
  760. Example: #getl Length {$rndsocial};#ran itemnr {1,$Length};#geti temp {$itemnr} {$rndsocial};{$temp}
  761. (will perform a random social from the 'rndsocial' list)
  762. *** Added features:
  763. IMPROVED VARIABLE NAMING:
  764. Added the possibility to add non-alpha characters (numbers,space,etc.) in variable names.
  765. (Which kind of makes the #getvarvalue command redundant, but it's kept for compatibility).
  766. Usage will hopefully be demonstrated by this example:
  767. #var {spellcost holy sphere} {150}
  768. #ali {holy} {#if {$manaleft < ${spellcost holy sphere}} {say Don't have enough mana to cast holy!}
  769. else {cas 'holy sphere'}}
  770. OR this more complex one:
  771. ----->8---- cut here ---->8-------
  772. #nop GENERAL STUFF
  773. #ali {===} {#nop}
  774. #ali {clv} {#var %0 0}
  775. #ali {incv} {#math {%%0} {$%%0+1}}
  776. === GENERAL LOG THINGIE ===
  777. #var logname Default; === Set the default logname
  778. #var {GETLOGSIZE} {#ifex {$logname} {#var logsize ${$logname}} else {clv logsize;#var {$$logname} 0}}
  779. #var {SHOWLOGTITLE} {#showme {== LOG: $logname == SIZE: $logsize ==}}
  780. #var {SHOWCONTENTS} {#loop {1,$$logsize} {#var logmsg ${$logname %%0};#showme {$logmsg}};#unvar logmsg}
  781. #ali {writelog} {$$GETLOGSIZE;incv logsize;{#var {$$logname} {$$logsize}};{#var {$$logname $$logsize}
  782. {%%%0}}}
  783. #ali {showlog} {$$GETLOGSIZE;$$SHOWLOGTITLE;#if {$logsize>0} {$$$SHOWCONTENTS}}
  784. #ali {clearlog} {#unvar {$$logname*};MSG The log "$logname" has been cleared !}
  785. === MOB COUNTER THINGIE ===
  786. #act {%0 is dead! R.I.P.} {#var ripname %0}
  787. #act {^You receive %1 experience points.} {#ifex {mob $$ripname} {#var MobCount ${mob $ripname};incv MobCount;
  788. {#var {mob $$ripname} $MobCount}} else {#var {mob $$ripname} 1;#var logname Mobs;writelog $ripname}}
  789. #var {SHOWMOBS} {#loop {1,$$logsize} {#var logmsg ${$logname %%0};
  790. {#showme {$logmsg - RIPS: ${mob $logmsg}}}};#unvar logmsg}
  791. #ali {showmobs} {#var logname Mobs;$$GETLOGSIZE;#if {$logsize>0} {$$$SHOWMOBS}}
  792. #ali {clearmoblog} {#var logname Mobs;clearlog;#unvar mob *}
  793. === Clear temporary variables ===
  794. #unvar GETLOGSIZE;#unvar SHOWLOGTITLE;#unvar SHOWCONTENTS
  795. #unvar SHOWMOBS
  796. --->8--- cut here --->8----
  797. Example which uses the commands above:
  798. Let's say the text inside the ---cut--- lines have been loaded and that the following lines
  799. has been received on the mud:
  800. The Spirit Guard is dead! R.I.P. ] occured 3 times
  801. You receive your share of 354325 experience points. ]
  802. The Spirit Sergeant is dead! R.I.P. ] occured 2 times
  803. You receive your share of 345552 experience points. ]
  804. Using the alias 'showmobs' will then display the following list
  805. (providing the alias 'clearmoblog' was run first):
  806. ---
  807. The Spirit Guard - RIPS: 3
  808. The Spirit Sergeant - RIPS: 2
  809. ---
  810. TICKCOUNTER:
  811. ============
  812. A variable containing the number of seconds to tick from tintin's internal tickcounter
  813. has been implemented.
  814. NB! The variable is only SIMULATED which means it won't be shown in the #variable list.
  815. Example: say There's approximately $secstotick seconds again to the tick.
  816. I also removed the annoying TICK messages from tintin... which means the tickcounter will
  817. run silently.
  818. FUNCTIONS:
  819. ==========
  820. Added a new list type which I decided to call functions. These are a mixture of aliases and
  821. variables. The following examples will have to do to explain how to use functions:
  822. Example:
  823. #function {rnd} {#random {temp} {%1,%2};#result {$temp};#unvar temp}
  824. #showme A random number between 0 and 100: @rnd{0 100}
  825. Functions are treated much like variables. Their value is
  826. a command-line which is executed, and the functions are substituted
  827. by the parameter last sent to the #result command
  828. Example:
  829. #function {lastfuncresult} {#nop}
  830. #showme Last use of a function gave @lastfuncresult as result.
  831. NB! Functions are NOT evaluated at all the same places as variables so before
  832. you decide to write a long comfile using functions - check if it works first! :)
  833. I might finish my work on the functions later, right now I'm too lazy to though.
  834. === FUNCTIONS ARE FOR INSTANCE _NOT_ EVALUATED INSIDE AN IF STATEMENT - YET! ===
  835. *** Function related commands:
  836. Command: result - write a string to the function buffer (NEW)
  837. Syntax: #result {-result-}
  838. Example: #func {ctof} {#math result %0*9/5+32;{#result $result degrees fahrenheit};#unvar result}
  839. #showme 30 degrees celsius equals @ctof{30}.
  840. Example: #func {ftoc} {#math result (%0-32)*5/9;{#result $result degrees celsius};#unvar result}
  841. #showme 80 degrees fahrenheit equals @ftoc{80}.
  842. Command: function - make a function (NEW)
  843. Syntax: #function {func name} {-function contents- (;#result -function result-)}
  844. Info: Will display all functions if no parameter is given
  845. Example: (see example for the 'result' command)
  846. Command: unfunction - remove a function (NEW)
  847. Syntax: #unfunction {func name}
  848. Note: Functions also allow the 'new' format used for variables. that is
  849. @{name}{params} to allow complex names containing non-alpha chars.
  850. That's all I could think of that I've modified on the 1.61dev version. If you find any bugs or
  851. errors in the docs above please write me a note about it.
  852. I'd also like suggestions to new commands/features or changes which can be made to
  853. already existing commands.
  854. NB! I do not officially support this version in any way! :)
  855. //Sverre is Happy Iny (sverreno@stud.ntnu.no)
  856. (www.stud.ntnu.no/~sverreno)
  857. 1998-1998 Sean Butler
  858. ---------------------
  859. Chat Additions, Bug Fixes and Additions for 1.7
  860. -----------------------------------------------
  861. Sean Butler - Xin - sbutler@deveast.com
  862. 1/13/98 Version 1.7
  863. FIXED:
  864. * All the #un commands no longer crash tintin.
  865. * "#end"ing tintin with a session open does not crash it.
  866. * Basically I fixed lots of linked list bugs.
  867. * SIGPIPE is now ignored.
  868. * Took out code that breaks lines if the user doesn't have
  869. a terminal that does it for him. This just caused horrible
  870. problems with color muds.
  871. * Made actions parse more quickly.
  872. * Rewrote all socket IO to use send/recv also made it more
  873. efficient.
  874. CHANGED:
  875. * split mode now senses the size of your terminal and prints
  876. a line as wide as the terminal. Works for autodetected
  877. screen size changes.
  878. ADDED:
  879. * Mudmaster compatible chat: #call, #chat, #chatall, #chatpriv,
  880. #chattransfer, #cinfo, #filecancel, #ping, #request,
  881. #sendfile, #unchat, #filestat
  882. See help file for details on their use and function.
  883. chat.c was added for the above new functions.
  884. * Color codes. Using the syntax
  885. &<letter>
  886. You can now include color codes in your actions and aliases.
  887. Valid letters are:
  888. capital = bright, lowercase = normal
  889. R = Red, G = Green, Y = Yellow, C = Cyan, M = magenta
  890. B = Blue, W = white, n = normal
  891. (SB)
  892. chat.c
  893. This module by: Sean Butler, sbutler@deveast.com - January 10, 1998
  894. An extension to Tintin that allows users to connect their clients together in
  895. a chat session. Multiple sessions are supported. The chat protocol used is
  896. compatible with MudMaster chat and was designed by the maker of MudMaster.
  897. All code is however of my creation and therefore direct all complaints,
  898. comments or praise to me.
  899. The following new commands have been added to tintin for chat purposes:
  900. #call #chat #chatall #emote
  901. #emoteall #unchat #sendfile #filecancel
  902. #request #chattransfer #ping
  903. The scheme used to implement this is a linked list of structures
  904. containing data about each connection. This structure was placed
  905. in tintin.h
  906. This is an alpha release and is not yet complete. There are many
  907. holes in the parsing of commands. The most glaring is the failure
  908. to adhere to the standard tintin syntax. In this release you may
  909. not use {} around the arguments to a chat command. ie.
  910. #chat {soandso} {Hi there}
  911. Next release this problem will be fixed.
  912. The only code that needed to be changed to add this module were these:
  913. parse.c -- to add the user commands
  914. rl.c -- added a call to chat_process_connections() and added
  915. the chat sockets to the call to select() in bait.
  916. main.c -- added the call to init_chat()
  917. misc.c -- added cleanup call in function end_command.
  918. Kindly accept my appologies for those of you who are forced to use
  919. 80 column displays, since I regularly go over 80 columns when writing
  920. this code.
  921. 1997-1998 Peter Kjellerstedt
  922. ----------------------------
  923. Wed May 27 18:16:43 1998 Peter Kjellerstedt <pkj@saur.axis.se>
  924. * rl.c:
  925. Fixed so the cursor doesn't end up in the upper windows sometimes.
  926. * utils.c: Corrected sys_errlist for Linux (will probably give warnings
  927. or maybe even error on other systems...)
  928. * net.c, main.c: Include socks.h if SOCKS is defined.
  929. * Makefile.in: Some minor fixes.
  930. Tue Apr 29 09:05:47 1997 Peter Kjellerstedt <pkj@saur.axis.se>
  931. * utils.c: New versions of strcasecmp() and strncasecmp().
  932. Sun Apr 27 20:51:11 1997 Peter Kjellerstedt <pkj@saur.axis.se>
  933. * ansi.c: Initial revision
  934. * Makefile.in: Added ansi.o to the object files to make.
  935. * rl.c: Fixed so printline() ignores ansi codes.
  936. * action.c: Fixed so action triggers ignores ansi codes.
  937. Wed Apr 23 23:17:49 1997 Peter Kjellerstedt <pkj@saur.axis.se>
  938. * Makefile.in: Removed history.c from the files to compile.
  939. Added F1 define for USE_ISO_LATIN_ONE.
  940. * action.c, alias.c, antisub.c, files.c, glob.c, help.c, highlight.c, ivars.c, llist.c, log.c, misc.c, net.c, parse.c, path.c, rltab.c, session.c, substitute.c, text.c, ticks.c, variables.c:
  941. Added const to string parameters.
  942. * rl.c: Added possibility to use ISO latin-1 characters by
  943. defining USE_ISO_LATIN_ONE.
  944. Fixed so C-d works as it does in emacs.
  945. Added const to string parameters.
  946. * rltick.c: Fixed so the tick messages are always shown again.
  947. The can be gagged if not wanted with split window.
  948. Mon Apr 21 21:11:32 1997 Peter Kjellerstedt <pkj@saur.axis.se>
  949. * text.c: Fixed so read empty lines are replaced with a space.
  950. * ivars.c: Added message when setting a variable with #math.
  951. Modified the #if statement to be of the format
  952. #if {expr} {true clause} [{false clause}] instead of
  953. #if {expr} {true clause} [else {false clause}] as it was before.
  954. * parse.c, variables.c: Added the #removestring command.
  955. * misc.c, parse.c: Added the #forall command.
  956. * rl.c: Some minor cleanup.
  957. * main.c: Removed declaration of unused global variable E.
  958. Fri Apr 18 12:54:11 1997 Peter Kjellerstedt <pkj@saur.axis.se>
  959. * Makefile.in: Added some warning message flags to CFLAGS.
  960. Restored some readline related stuff.
  961. * configure.in:
  962. Added checks for sys/ioctl.h, termcap.h, and net/errno.h.
  963. Added check for strcasecmp.
  964. * utils.c: Added some const.
  965. Made is_abbrev() ignore case (and somewhat more robust).
  966. Added strcasecmp() and strncasecmp() in case they aren't defined.
  967. * misc.c: Fixed so the message command can take an additional
  968. argument (on or off).
  969. * scrsize.c: Include sys/ioctl.h if it exists.
  970. * net.c: Include errno.h instead of sys/errno.h
  971. * main.c: Removed the environ argument to main().
  972. Wed Apr 16 17:44:45 1997 Peter Kjellerstedt <pkj@saur.axis.se>
  973. * action.c, alias.c, antisub.c, files.c, glob.c, help.c, highlight.c, history.c, ivars.c, llist.c, log.c, misc.c, net.c, path.c, rl.c, rlhist.c, rltab.c, rltick.c, rlvt100.c, scrsize.c, session.c, substitute.c, text.c, ticks.c, variables.c:
  974. Added inclusion of *.proto files.
  975. * utils.c: Renamed is_abrev() as is_abbrev().
  976. Added inclusion of *.proto files.
  977. * parse.c: Added do_one_line() (was in main.c).
  978. Added inclusion of *.proto files.
  979. * main.c: Moved do_one_line() to parse.c
  980. Added inclusion of *.proto files.
  981. Sun Apr 13 02:36:34 1997 Peter Kjellerstedt <pkj@saur.axis.se>
  982. * Makefile.in: Added protos to the path for include files.
  983. * configure.in, files.c, help.c, action.c, antisub.c, highlight.c, history.c, ivars.c, llist.c, misc.c, parse.c, path.c, rl.c, rltab.c, scrsize.c, session.c, substitute.c, text.c, ticks.c, utils.c, variables.c, rlhist.c, rltick.c, rlvt100.c, glob.c, log.c, main.c, alias.c, net.c:
  984. Added support for config.h
  985. Sat Apr 12 15:22:38 1997 Peter Kjellerstedt <pkj@saur.axis.se>
  986. * Makefile.in: Some minor changes.
  987. * configure.in: Updated for autoconf v2.10
  988. * help.c: Fixed so check_file() handles normal files, compressed files
  989. and gzipped files.
  990. * scrsize.c, rl.c, net.c, main.c, parse.c: Some cleanup.
  991. Thu Apr 10 17:40:35 1997 Peter Kjellerstedt <pkj@saur.axis.se>
  992. * tintin.h:
  993. Added SCREEN_HEIGHT, DEFAULT_RESOURCE_FILE, DEFAULT_HELP_FILE,
  994. DEFAULT_CAT_STR, DEFAULT_COMPRESS_EXT, DEFAULT_UNCOMPRESS_STR,
  995. DEFAULT_GZIP_EXT and DEFAULT_GUNZIP_STR.
  996. * rltick.c: Fixed the tickcounter in the splitline some.
  997. Wed Apr 9 16:10:55 1997 Peter Kjellerstedt <pkj@saur.axis.se>
  998. * rltab.c: Fixed so the completion list is build by adding each
  999. new item last, instead of first.
  1000. Fixed so that tabcompletion returns the first match only.
  1001. Mon Apr 7 01:30:50 1997 Peter Kjellerstedt <pkj@saur.axis.se>
  1002. * rltick.c: Some minor cleanup.
  1003. * tintin15.txt: Initial revision
  1004. * rltick.c: Added call to tickcounter_in_splitline().
  1005. * rl.c: Commented out linewrapping code.
  1006. Added a \r to each output line (don't know why this is needed).
  1007. Added tickcounter_in_splitline().
  1008. * rltab.c: Made the tab list use five columns and be left justified.
  1009. * main.c: Removed some not needed term stuff.
  1010. * configure.in: Removed configure of readline.
  1011. * variables.c, substitute.c, session.c, parse.c, misc.c, highlight.c, help.c, antisub.c, alias.c, action.c:
  1012. Fixed a few memory errors.
  1013. * Makefile.in: Assumes libreadline.* already exists on the system.
  1014. * .tintinrc, .tt_help.txt, Makefile.org, variables.c, utils.c, tintin.h, ticks.c, text.c, substitute.c, session.c, scrsize.c, rlvt100.c, rltick.c, rltab.c, rlhist.c, rl.c, path.c, parse.c, net.c, misc.c, main.c, log.c, llist.c, ivars.c, install-sh, history.c, highlight.c:
  1015. Initial revision
  1016. Sun Apr 6 23:59:53 1997 Peter Kjellerstedt <pkj@saur.axis.se>
  1017. * help.c, gripe, glob.c, files.c, convert.c, configure.in, antisub.c, alias.c, action.c, Makefile.in, README, INSTALL, CREDITS, CHANGES:
  1018. Initial revision