100 eyes see more than 10
-
Scandum
- Site Admin
- Posts: 4145
- Joined: Fri Dec 03, 2004 10:13 pm
Post
by Scandum » Tue Jan 22, 2019 12:04 pm
http://tintin.sourceforge.net/download/ ... eta.tar.gz
- Fixed bug with <g00> and <G00> color codes not working.
- Added additional telnet events, for example:
CATCH IAC WILL SGA will trigger on the IAC WILL SGA telnet negotiation, and prevent tintin from responding and enabling prompt marking mode.
IAC WILL SGA will trigger on the IAC WILL SGA telnet negotiation, while tintin will respond as usual to the negotiation.
-
Scandum
- Site Admin
- Posts: 4145
- Joined: Fri Dec 03, 2004 10:13 pm
Post
by Scandum » Fri Jan 25, 2019 5:06 pm
Code: Select all
path.c Added #path create, destroy, goto, move start, stop, swap, undo
which are somewhat document in #help path.
You can now have a position on a path, which is displayed
with #path map. This allows using #path move backward when a
#path walk forward is interrupted.
This update has some minor backward compatibility issues, especially for people who used the "#path walk backward" option. To fix those scripts you need to change them to use:
#path goto end;#path walk backward
Subsequent calls to #path walk backwards don't need the goto.
Also keep in mind that #path undo only undoes path creation at the end of the path. To undo movement along the path use #path move backward.
-
PowerGod
- Posts: 460
- Joined: Mon Aug 04, 2014 9:11 am
Post
by PowerGod » Sat Jan 26, 2019 2:31 am
Is it normal that the last beta still reports "2.01.6" ?
"#PATH SAVE" still uses always the entire path, right ?
Is there a reason why "end" is not in "#help path" ?
Is there a way to get the actual position index in a variable ?
I like a lot these new additions !!
-
Scandum
- Site Admin
- Posts: 4145
- Joined: Fri Dec 03, 2004 10:13 pm
Post
by Scandum » Sat Jan 26, 2019 11:32 am
I forgot to update the version number.
#path save will save the entire path regardless of your current position.
#path swap will properly swap your position as well while #path delete and #path insert ignore the position.
I also tried to increase consistency, so I added #path create, destroy, start and stop which will eventually replace #path new and end. Create is the equivalent of new, and stop is the equivalent of end.
My main reason for hiding #path new, end, and show is that keeping them would increase the documentation by 25% while no functionality would be gained.
-
Scandum
- Site Admin
- Posts: 4145
- Joined: Fri Dec 03, 2004 10:13 pm
Post
by Scandum » Sun Feb 03, 2019 1:12 pm
Code: Select all
event.c Added the SHORT-CLICKED mouse events. It triggers when the
time between pressing and releasing the mouse button is
less than 0.5 seconds. The event is not triggered when
double or triple clicks occure, but will trigger on the
first click of a double click, just like a triple click
event will be preceded by a double click event.
event.c All mouse events now report the inverse x and y position
using the %2 and %3 arguments.
event.c Added the LONG-CLICKED mouse event. It triggers when the time
between pressing and releasing the mouse button is greater
than 0.5 seconds.
variable.c Added better support for wrapping escaped characters with
#format %w.
For clarification:
- Mouse events must be turned on by using #config {mouse tracking} {on}
- Mouse events, and all other undefined events, can be seen by using: #info event on
- Double clicks require two clicks within 0.5 seconds, triple clicks require three clicks within 0.5 seconds.
- After receiving a triple click the mouse click state is reset.
- %0 and %1 contain the x and y location as measured from the bottom left corner.
- %1 and %2 contain the x and y location as measured from the top right corner using inverse negative numbers.
- If your terminal is 80 wide and 24 high clicking the bottom left corner will report %0 as 1 and %1 as 0, while %2 is reported as -80 and %3 as -24.
- If your terminal is 80 wide and 24 high clicking the top right corner will report %0 as 80 and %1 as 23, while %2 is reported as -1 and %3 as -1.
- This behavior seems asymmetrical, unless you consider the input line (which is reported as 0) as separate from the rest of the screen.
To see mouse arguments use:
Code: Select all
#event {PRESSED MOUSE BUTTON ONE} {#showme <118>%%0=(%0) %%1=(%1) %%2=(%2) %%3=(%3)}
-
Scandum
- Site Admin
- Posts: 4145
- Joined: Fri Dec 03, 2004 10:13 pm
Post
by Scandum » Thu Feb 07, 2019 12:53 pm
Code: Select all
class.c Added #class {class} SIZE {variable} option to store the size
of a class in a given variable.
-
Scandum
- Site Admin
- Posts: 4145
- Joined: Fri Dec 03, 2004 10:13 pm
Post
by Scandum » Sat Feb 09, 2019 4:38 pm
Code: Select all
class.c 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.
I also fixed a minor security issue, so I'll probably push a release in the next few days. Please test the beta if you have a minute.
Classes should work as expected now.
Code: Select all
#class bla open
#CLASS {bla} HAS BEEN OPENED AND ACTIVATED.
#class bli open
#CLASS {bli} HAS BEEN OPENED AND ACTIVATED.
#class bli close
#CLASS {bli} HAS BEEN CLOSED.
#CLASS {bla} HAS BEEN ACTIVATED.
#class
bla 0 ACTIVE OPEN -1
bli 0 CLOSED 0
The number on the right can be ignored, it's the priority and I left it there for debugging purposes in case something doesn't work quite right.
-
PowerGod
- Posts: 460
- Joined: Mon Aug 04, 2014 9:11 am
Post
by PowerGod » Mon Feb 11, 2019 11:15 pm
I was playing with #path and this happened (2.01.7b - without scripts):
Code: Select all
#path save f mario
#PATH SAVE: PATH SAVED TO {mario}
#path map
#PATH: e e n s e e s [ ]
#path load mario
#PATH LOAD: PATH WITH 7 NODES LOADED.
#path map
#PATH: [e] e e n s e e s
#path swap
#PATH SWAP: PATH HAS BEEN SWAPPED.
#path map
DEBUG_STACK[000] = script_driver(0x600075590,3,0x6000556ec)
DEBUG_STACK[001] = do_path(0x600075590,0x6000bc110)
and crashed to bash
-
Scandum
- Site Admin
- Posts: 4145
- Joined: Fri Dec 03, 2004 10:13 pm
Post
by Scandum » Tue Feb 12, 2019 8:05 am
Thanks, I'll take a look at that.

Users browsing this forum: No registered users and 0 guests