Skip to content

Commit

Permalink
2.02.05
Browse files Browse the repository at this point in the history
  • Loading branch information
scandum committed Nov 1, 2020
1 parent 293ca82 commit b36056b
Show file tree
Hide file tree
Showing 33 changed files with 1,231 additions and 1,531 deletions.
5 changes: 2 additions & 3 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ TinTin++ 2.01.90

#prompt {text} {substitution} will stay the same.
#prompt {text} {substitution} {0} will become invalid.
#prompt {test] {substitution} {1} will write to the top line.
#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.
Expand Down Expand Up @@ -216,7 +216,7 @@ TinTin++ 1.99.1
TinTin++ 1.96.6
---------------

#PATHDIR is now specificly designed to hold a direction, the opposite
#PATHDIR is now specifically designed to hold a direction, the opposite
direction, and the vector of said direction for the #MAP command.


Expand Down Expand Up @@ -289,7 +289,6 @@ 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.

Expand Down
32 changes: 32 additions & 0 deletions SCRIPTS
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,38 @@

#substitute {{\b[a-zA-Z]+\b}} {@spellcheck{%1}}

#nop -------------------------------------------------------------------------
#nop This function and substitution will add a speed reader to the split line
#nop -------------------------------------------------------------------------

#split

#function spellcheck
{
#format result %S %1;
#if {$result == 0}
{
#var result %1
};
#else
{
#var result <118>%1<900>
};
#list speedread ins -1 {$result}
}

#substitute {{\b[a-zA-Z]+\b}} {@spellcheck{%1}}

#tick {speedread}
{
#if {&{speedread[]}}
{
#draw tile -2 1 -2 20 {$speedread[1]};
#list speedread delete 1
}
}
{0.1}

#nop -------------------------------------------------------------------------
#nop This function tests the random number engine
#nop -------------------------------------------------------------------------
Expand Down
72 changes: 15 additions & 57 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
* BUGS

- might be \ handling issues in #format %w
- Look into escaped color codes in zmp, possibly msdp

- See about making @$var{} work.

- See about turning window close into a program termination event.

- finish BUFFER_SIZE replacement.

- WSL faq: #system cmd.exe /c start notepad

- str_ify ses->more_output

- update msdp scripts with #line msdp feature

- update the FAQ, and online manual

- refresh input on session switch

- swap arg1, arg2, arg for do_port
Expand All @@ -27,8 +27,6 @@

* STUFF THAT IS PROBABLY GONNA GET DONE

- Editor

- Finish port proxy support: resizing, input, security

- look into transparent drawing
Expand All @@ -53,10 +51,7 @@
- tabbing on directory structure.
- tabbing on dictionary

- Enhance #scan with a scan of the directory structure.

- #map list {<exits>} breaks on rooms that have e mapped to eu.

- finish landmarks
- map sandbox mode support (flags to disable saving?)
- add ghosting to fix #map flag nofollow exit cmd issues?
Expand Down Expand Up @@ -88,16 +83,13 @@
#draw titanic

- proper vt100 skip detection for improper color codes.
- look into VT100 / #split hybrid mode.

- I'll look and see if I can make { match both a { and \x7B as it's an annoying issue to debug.
- Make { match both a { and \x7B as it's an annoying issue to debug.

- Add VT100 filter to make outside sources respect terminal size constraints, also needed to run bash in vsplit mode.

- Remote script loading

- make #path load bi-directional.

- add class specific debug
- better class event and class size handling ?

Expand All @@ -109,8 +101,6 @@

- Add #log delete/remove option.

- See about filling COMMAND_LIST table.

- See about adding SESSIONS to the list table.

- Add debugger to syntax highlighter, substitution highlighing, 256 color support, and variable expansion.
Expand All @@ -130,16 +120,8 @@

- Add JSON support to #scan

- fix \x00 showme

- support strikethrough html logging.

- see if #break 2 is possible, maybe #continue 2 as well.

- Add options to #cursor to implement custom behaviour.

- toggle global flags with #message all on, #debug all on, etc.

- http://tintin.sourceforge.net/board/viewtopic.php?p=9625 (map undo issue) (not a big issue)

- http://tintin.sourceforge.net/board/viewtopic.php?t=2339 (map area data)
Expand Down Expand Up @@ -194,6 +176,8 @@

- Allow converting tt++ scripts to C.

- session proxies

--------------------------------------------------------------------------------

* STUFF THAT MIGHT BE IMPLEMENTED
Expand All @@ -210,13 +194,9 @@

- SGA disabling

- CHARSET TELOPT support.

- BINARY TELOPT support.

- Split pane scrollback (event system?)

- add #line gag {lines} option or #lines {lines} {gag}.
- add #line gag {lines} option

- Add something like #log append $dir/logs/log.txt {%D %H:%M:%S}

Expand All @@ -243,8 +223,6 @@

- There's a bug with prompt repetitions with packet patch set.

- garbage collection for deleted nodes.

- Deal with escaping { } / ; in #script variables.

- Make tintin char setting by session instead of global.
Expand Down Expand Up @@ -291,36 +269,21 @@

--------------------------------------------------------------------------------


* MISCELANEOUS

- look into Launchpad PPA

--------------------------------------------------------------------------------

* STUFF FOR A RAINY DAY

- nestable functions

- Buffer safe strings.

- Fix up ipv6 support in chat.

- Look into packet defragmentation for chat.

- Color code compression, particularly useful with vt map drawing.

- Events for prompt lines.

- Lua scripting

- Look into using speech-dispatcher for text to speech.

- MXP script http://tintin.sourceforge.net/board/viewtopic.php?t=1396

- Add %U (upper) %L (lower) support.
check https://www.boost.org/doc/libs/1_50_0/libs/regex/doc/html/boost_regex/syntax/basic_extended.html

- cursor extension for vim

- interactive script tutorial

-------------------------------------------------------------------------------

* STUFF I'M NOT SURE ABOUT
Expand All @@ -331,14 +294,9 @@

-------------------------------------------------------------------------------

* NEW STUFF
* STUFF THAT WON'T BE IMPLEMENTED

- xterm mouse
- path improvements
- remote session
- map sharing
- cursor extension for vim
- interactive script tutorial
- Lua or any other scripting language, focus is on developing tintin scripting.

-------------------------------------------------------------------------------

Expand Down
15 changes: 12 additions & 3 deletions mods/igr.mods
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
Oct 2020 2.02.05
------------------------------------------------------------------------------

variables.c Added the #unlocal command.

files.c Table variables are now written to file with indentation.

utf8.c Decreased the memory footprint of BIG-5 / GBK-1 support.

variable.c The VARIABLE UPDATE event now reports the path in the %2
argument.

May 2020 2.02.04
------------------------------------------------------------------------------

Expand Down Expand Up @@ -151,9 +163,6 @@ draw.c Added the SCALED drawing option. When used the size of the
square is increased depending on the size of the inputted
text.

documentation Added docs/link.txt file with the initial documentation for
link handling.

buffer.c #buffer find now places the found keyword at the top instead
of at the bottom of the page.

Expand Down
2 changes: 1 addition & 1 deletion src/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ void buffer_print(struct session *ses, int index, int start, int end)
{
if (HAS_BIT(ses->flags, SES_FLAG_PRINTBUFFER) || ses->scroll->line == ses->scroll->used - 1)
{
word_wrap_split(ses, ses->scroll->input, temp, ses->wrap, 0, 1, WRAP_FLAG_NONE, &height, &width);
word_wrap_split(ses, ses->scroll->input, temp, ses->wrap, 0, 1, WRAP_FLAG_SPLIT, &height, &width);
}
else
{
Expand Down
Loading

0 comments on commit b36056b

Please sign in to comment.