-
Notifications
You must be signed in to change notification settings - Fork 56
/
NEWS
348 lines (223 loc) · 10.9 KB
/
NEWS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
Due to continuous improvements old tintin scripts aren't always compatible
with new versions. This document tries to list most compatibility conflicts.
TinTin++ 2.02.12
----------------
01) The behavior of $variable[] is now identical to $variable[%*].
TinTin++ 2.02.11
----------------
01) %w now translates to {[a-zA-Z0-9_]*} instead of {[a-zA-Z]*} so it matches
the behavior of \w. Same for %W.
02) The : time operator in #math should no longer be used since that is
going to be changed to c style ? : ternary operator support.
03) #math and #if no longer recognize .1 as a number, you need to use 0.1.
TinTin++ 2.02.04
----------------
01) Variables starting with a number are no longer supported, as per the
C standard for naming variables. A warning is generated when trying to
do so.
Keep in mind that #var {8ball} {1} will still work, just that instead of
being able to use $8ball you need to use ${8ball} for an explicit
variable lookup.
02) Implicit index lookups on undefined variables are no longer supported. If
you do something like #if {&target} this needs to be changed to
#if {&{target}}.
The reason for this is that "say I played d&d last night" would evaluate
as "say I played d0 last night".
TinTin++ 2.02.00
----------------
01) #format <var> %C needs to be changed to #screen get cols <var>
#format <var> %R needs to be changed to #screen get rows <var>
#format <var> %S needs to be changed to #info session save
02) If you were using ${variable}[1] this needs to be changed to
${variable[1]} to have the same behavior.
03) $variable() *variable() and &variable() are reserved until further notice,
use ${variable}( for proper behavior.
04) %+ now has different behavior when followed by a number.
You can replace '%+' with '%+1..a', see #help regex for more information.
TinTin++ 2.01.92
----------------
01) The #buffer get command has been changed to use the new row notation
standard.
02) The #split command has been changed to where it sets the number of
top split lines if only one argument is given.
The 2nd argument sets the number of bottom split lines which defaults
to 1. The 3rd and 4th argument set the left and right split lines.
03) #killall gives a warning that it should be changed to #kill all
04) #forall has been removed.
05) Added a notice for people still using $variable[] instead of
*variable[]. I'll change $variable[] eventually to be identical to
$variable[%*].
TinTin++ 2.01.90
---------------
01) You'll have to issue #map color reset and #map legend reset to get
your old map files straightened out. Once the map is saved again
it should work without issues.
02) There were two big problems that needed to be addressed to continue
smooth development.
1. In VT100 row 1 is the top line, while in tintin row 1 is the split
line.
2. In VT100 row, col (y, x) notation is used, while tintin has been
favoring col, row (x, y) notation.
While this may seem like a minor issue, I'm utilizing VT100 more often
using more complex operations, and TinTin++ is currently pretty much
mirrored in the way it behaves opposed to VT100.
This has resulted in relatively simple math becoming weird unintuitive
math, making already complex code even more complex, resulting in bugs
and unreadable code that requires a lot of mental gymnastics to figure
out.
Subsequently I decided on a major interface change that will result in
several compatibility issues.
#split will stay the way it is.
#showme {text} will stay the same.
#showme {text} {0} will become invalid.
#showme {text} {1} will print on the top line.
#showme {text} {2} will print on the second line from the top.
#showme {text} {-1} will print on the bottom line / input line.
#showme {text} {-2} will print on the default split line.
#prompt {text} {substitution} will stay the same.
#prompt {text} {substitution} {0} will become invalid.
#prompt {text] {substitution} {1} will write to the top line.
#prompt {text} {substitution} {-1} will write to the bottom / input line.
#prompt {text} {substitution} {-2} will write to the 2nd line from the
bottom, which is the default split line.
All code that takes {col} {row} as an argument will be changed to instead
use {row} {col}. The main reason for this change is consistency, and
because I've repeatedly swapped row and col in VT100 which can be a tricky
bug to track down.
TinTin++ 2.01.8
---------------
01) Changed the software license from GPL2 to GPL3.
02) The SYSTEM START event will no longer report the client name and version
as %0 and %1. Instead you can use #info system save, which will save
CLIENT_NAME and CLIENT_VERSION to the $info[SYSTEM] variable.
TinTin++ 2.01.7
---------------
Added proper class nesting. When closing the active class, the last active
class is activated. This change will cause trouble for scripts that don't
properly close classes.
TinTin++ 2.01.5
---------------
01) The #FORALL command has been removed and instead #FOREACH should be used.
02) Removed dot notation support for variables. #var bla.bli blo is no longer
valid, nor is $bla.bli.
TinTin++ 2.01.4
---------------
Added support for *{variable} to show variable names.
TinTin++ 2.00.2
---------------
Removed the #suspend command, it's been moved to #cursor suspend.
TinTin++ 1.99.7
---------------
01) #LOOP, #FOREACH, and #PARSE take an additional argument which contains
the variable used for storing the intermediate values.
#LOOP {min} {max} {variable} {commands}
#FOREACH {list} {variable} {commands}
#PARSE {string} {variable} {commands}
02) #format {variable} {syntax} {{arg1} {arg2}} has been changed to
#format {variable} {syntax} {arg1} {arg2}
03) Renamed #replacestring to #replace
04) Variables can be nested using brackets. Non existent nested variables
report 0 if the base variable exists and always report 0 when the name
is encapsulated in braces.
Using & instead of $ will report the index of a variable.
Using $variable[+1] will report the first nest, and $variable[-1] will
report the last nest, $variable[-2] the second last nest, etc.
To display all nests use $variable[]
To check if a variable exists use: #if {&{variable}} which will report
0 if non existent, and the numeric index if the variable is found.
05) #LIST now works with nested variables. Read #HELP VARIABLE.
06) The #SWITCH, #CASE, #DEFAULT, #FOREACH, #BREAK, #CONTINUE, #ELSE, #ELSEIF,
and #RETURN statements have been added and should work more or less as
expected.
TinTin++ 1.99.1
---------------
01) The #regex command now uses the same regular expression syntax as triggers.
02) #if {"%0" == "?test*"} needs to be replaced with #if {"%0" == "%?test%*"}
as per the regex syntax documented in #HELP ACTION, or use
#if {&{test} != 0} to see if a variable exists.
03) old lists need to be converted as following:
#var {friends} {{Alicia} {Bubba} {Cathie} {Kayla} {Zorro}}
to
#var {friends} {{1}{Alicia} {2}{Bubba} {3}{Cathie} {4}{Kayla} {5}{Zorro}}
or
#list friends create {{Alicia} {Bubba} {Cathie} {Kayla} {Zorro}}
TinTin++ 1.99.1
---------------
Triggers now use PCRE (Perl Compatible Regular Expressions).
See #help regex for details.
TinTin++ 1.96.6
---------------
#PATHDIR is now specifically designed to hold a direction, the opposite
direction, and the vector of said direction for the #MAP command.
TinTin++ 1.95.0
---------------
Removed #antisubsittute as its utility was too limited for inclusion.
TinTin++ 1.94.4
---------------
01) #SPLIT supports 2 arguments to set the top and bottom row.
02) In order to make a color trigger start a trigger with a tilda. In order to see
color codes the way tintin wants you to enter them type: #CONFIG convert on
when done use: #CONFIG convert off.
#action {~\0;32m%0 says '%1'} {say I don't like green says.}
TinTin++ 1.94.0
---------------
#SLEEP has been removed. The #DELAY command can be used instead.
TinTin++ 1.91.0
---------------
Removed the #speedwalk command, it's been moved to the #config menu.
TinTin++ 1.90.0
---------------
01) !<argument> will repeat the last command starting with that argument.
score
who all
area
! --> repeats area
!w --> repeats who all
!s --> repeats score
!ll --> sends !ll as a command
TinTin++ 1.89.0
---------------
01) #HIGHLIGHT is now parsed as: #HIGHLIGHT {string} {color}. You can
combine several colors by separating them by semicolons. The color
argument can be a color code. See #HELP COLORS.
02) $result is now a default variable that can be used in #FUNCTION.
#function dosomething {#math result 1 + 1}
say @dosomething{} will print 2, the #RESULT command has been removed.
It's possible to use #return <value> to exit the function and at the same
time set the result variable.
03) #MATH and #IF support 64 floating point arithmatic expressions. They also
support strings, which must be enclosed in quotes. See #HELP MATH for more
information.
TinTin++ 1.88.0
---------------
01) #FORMAT has been introduced and replaces a wide variety of commands.
02) #MESSAGE, #CONFIG, #IGNORE, #DEBUG are all you need to configure tintin,
changes made with #CONFIG are written to file with #WRITE.
03) The old walk code has been removed, instead you can use the #PATH command.
04) #TICK has been changed quite a bit, new commands: #TICK and #UNTICK, you
can have as many tickers as you want. The old #TICK command is gone.
Syntax: #TICK {name} {commands} {seconds to tick}
The name is added so you can delete it. You will no longer receive spam,
but with a little bit of creativity you can rebuild the old tintin ticker
spam.
Use #READ to load the following ticker which emulates old behavior:
#tick {oldtick}
{
#delay 50 #showme #10 SECONDS TO TICK!!;
#showme #TICK!!!
}
{60}
05) #READ now supports multiline triggers, it also checks the nesting level
before doing anything so you don't end up with bogus, and trims leading
spaces/tabs. Make sure to remove non matching { }'s from #NOP comments,
cause it will (and should) create error messages. The error message
will try to inform you on what line the error occured.
06) Added #MACRO for macro support.
07) Defaults are no longer in a default .rc file.
08) Can now have multiple prompt triggers, the 2nd argument is the substitution
string that works the same as #SUBSTITUTE. the 3rd argument is the row the
line should be printed on, if left blank it picks the default split line.
09) All settings are inherited from the startup session when creating a new
session.
10) A scrollback buffer has been added, which can be browsed with page up,
page down, and the #GREP and #BUFFER command.