Ver Fonte

Feat: cumulative update

Jan 2024        2.02.42
------------------------------------------------------------------------------
net.c           Fixed a bug causing #config color_patch to strip all colors.

Jan 2024        2.02.41
------------------------------------------------------------------------------
tokenize.c      Fixed issues with tailing spaces for several statements.

parse.c         On entering #exit or #quit tintin suggests using #end or #zap.
dzp há 2 anos atrás
pai
commit
74ac6898bf
7 ficheiros alterados com 53 adições e 20 exclusões
  1. 26 0
      TODO
  2. 7 0
      mods/igr.mods
  3. 3 3
      src/help.c
  4. 2 2
      src/input.c
  5. 10 10
      src/net.c
  6. 4 4
      src/telopt_client.c
  7. 1 1
      src/tintin.h

+ 26 - 0
TODO

@@ -1,12 +1,35 @@
+- 3Kingdoms loses color with #config color_patch on
+
+#SESSION {3k} {3k.org} {3000};
+user
+pass
+#CONFIG {COLOR PATCH} {on};
+#EVENT {RECEIVED PROMPT}
+{
+  #NOP Do Something;
+};
+
 - Problem with restoring true color subs.
 #sub bla {<F00AA00>bla}
 #high blo <118>
 #showme <158>test bli bla blo test
 
+- named delays don't work in gts
+
+- #SPLIT when you give the top bar a negative value for its size, TinTin isn’t drawing the white box around it
+
+- https://github.com/mintty/mintty/wiki/CtrlSeqs#audio-support
+- mintty --configdir DIRNAME
+
 - split screen scrollback setting in #screen
 
+- terrain based weight modifier
+- weightless mode for #map list and #map find
+
 - Make #draw scroll grid table work properly.
 
+- update https://tintin.mudhalla.net/info/ansicolor/
+
 - Make sure #config compact also applies to the log file.
 
 - Add an #event that triggers when a function/variable is not found.
@@ -29,6 +52,8 @@
 
 - look into GMCP larger than buffer size
 
+- look into #button SWIPED MOUSE BUTTON ONE option
+
 - finish ? : support in #math
 
 - finish create_node()
@@ -37,6 +62,7 @@
 
 - look into invalid { } in MSDP / GMCP handling
 
+
 - mapper.c FAST handling
 
 - sandbox mode to disable shell integration.

+ 7 - 0
mods/igr.mods

@@ -1,7 +1,14 @@
+Jan 2024        2.02.42
+------------------------------------------------------------------------------
+net.c           Fixed a bug causing #config color_patch to strip all colors.
+
 Jan 2024        2.02.41
 ------------------------------------------------------------------------------
+
 tokenize.c      Fixed issues with tailing spaces for several statements.
 
+parse.c         On entering #exit or #quit tintin suggests using #end or #zap.
+
 Mar 2023        2.02.40
 ------------------------------------------------------------------------------
 data.c          Changed the symbol for the strict equality assignment/lookup

+ 3 - 3
src/help.c

@@ -3762,7 +3762,7 @@ struct help_type help_table[] =
 		"<278>         Available MSDP events can be queried using the MSDP protocol\n"
 		"<278>         as described in the specification.\n"
 		"\n"
-		"<278>         <168>https://tintin.sourceforge.io/protocols/msdp\n"
+		"<278>         <168>https://tintin.mudhalla.net/protocols/msdp\n"
 		,
 		"event port"
 	},
@@ -4505,7 +4505,7 @@ struct help_type help_table[] =
 		"<278>         is being used by utilizing the MTTS standard. The MTTS specification\n"
 		"<278>         is available at:\n"
 		"\n"
-		"<278>         http://tintin.sourceforge.net/protocols/mtts\n"
+		"<278>         https://tintin.mudhalla.net/protocols/mtts\n"
 		"\n"
 		"<278>         With the screen reader mode enabled TinTin++ will try to remove or\n"
 		"<278>         alter visual elements where possible.\n"
@@ -5155,7 +5155,7 @@ struct help_type help_table[] =
 		"<278>         underscores in order to be substituted.  If you do not meet these\n"
 		"<278>         requirements do not panic, simply encapsulate the variable in braces:\n"
 		"\n"
-		"<178>Example<278>: #variable {cool website} {http://tintin.sourceforge.net}\n"
+		"<178>Example<278>: #variable {cool website} {https://tintin.mudhalla.net}\n"
 		"<278>         #chat I was on ${cool website} yesterday!.\n"
 		"\n"
 		"<278>         Variables can be escaped by adding additional $ signs.\n"

+ 2 - 2
src/input.c

@@ -782,9 +782,9 @@ void convert_meta(char *input, char *output, int eol)
 
 	while (*pti && pti - input < BUFFER_SIZE / 2)
 	{
-		switch (*pti)
+		switch ((unsigned char) *pti)
 		{
-			case -1:
+			case 255:
 				*pto++ = '\\';
 				*pto++ = 'x';
 				*pto++ = 'F';

+ 10 - 10
src/net.c

@@ -638,7 +638,7 @@ void process_more_output(struct session *ses, char *append, int prompt)
 
 void process_mud_output(struct session *ses, char *linebuf, int prompt)
 {
-	char line[STRING_SIZE];
+	char line[STRING_SIZE], temp[STRING_SIZE];
 	int str_len, raw_len;
 
 	push_call("process_mud_output(%p,%p,%d)",ses,linebuf,prompt);
@@ -684,13 +684,13 @@ void process_mud_output(struct session *ses, char *linebuf, int prompt)
 	{
 		ses->gagline--;
 
-		strip_non_vt102_codes(linebuf, line);
+		strip_non_vt102_codes(linebuf, temp);
 
-		print_stdout(0, 0, "%s", line);
+		print_stdout(0, 0, "%s", temp);
 
-		strip_vt102_codes(linebuf, line);
+		strip_vt102_codes(linebuf, temp);
 
-		show_debug(ses, LIST_GAG, COLOR_DEBUG "#DEBUG GAG " COLOR_BRACE "{" COLOR_STRING "%s" COLOR_BRACE "} " COLOR_COMMAND "[" COLOR_STRING "%d" COLOR_COMMAND "]", line, ses->gagline + 1);
+		show_debug(ses, LIST_GAG, COLOR_DEBUG "#DEBUG GAG " COLOR_BRACE "{" COLOR_STRING "%s" COLOR_BRACE "} " COLOR_COMMAND "[" COLOR_STRING "%d" COLOR_COMMAND "]", temp, ses->gagline + 1);
 
 		pop_call();
 		return;
@@ -698,11 +698,11 @@ void process_mud_output(struct session *ses, char *linebuf, int prompt)
 
 	if (HAS_BIT(ses->event_flags, EVENT_FLAG_OUTPUT|EVENT_FLAG_CATCH))
 	{
-		strip_vt102_codes(linebuf, line);
+		strip_vt102_codes(linebuf, temp);
 
-		check_all_events(ses, SUB_SEC|EVENT_FLAG_OUTPUT, 0, 3, "PROCESSED LINE", linebuf, line, ntos(prompt));
+		check_all_events(ses, SUB_SEC|EVENT_FLAG_OUTPUT, 0, 3, "PROCESSED LINE", linebuf, temp, ntos(prompt));
 
-		if (check_all_events(ses, SUB_SEC|EVENT_FLAG_CATCH, 0, 3, "CATCH PROCESSED LINE", linebuf, line, ntos(prompt)))
+		if (check_all_events(ses, SUB_SEC|EVENT_FLAG_CATCH, 0, 3, "CATCH PROCESSED LINE", linebuf, temp, ntos(prompt)))
 		{
 			pop_call();
 			return;
@@ -725,11 +725,11 @@ void process_mud_output(struct session *ses, char *linebuf, int prompt)
 			{
 				int height, width;
 
-				word_wrap_split(ses, linebuf, line, ses->wrap, 0, 0, FLAG_NONE, &height, &width);
+				word_wrap_split(ses, linebuf, temp, ses->wrap, 0, 0, FLAG_NONE, &height, &width);
 
 				if (height > 1)
 				{
-					word_wrap_split(ses, linebuf, line, ses->wrap, height, height, WRAP_FLAG_SPLIT, &height, &width);
+					word_wrap_split(ses, linebuf, temp, ses->wrap, height, height, WRAP_FLAG_SPLIT, &height, &width);
 				}
 				ses->input->str_off = 1 + width;
 			}

+ 4 - 4
src/telopt_client.c

@@ -1536,12 +1536,12 @@ int client_recv_sb_new_environ(struct session *ses, int cplen, unsigned char *sr
 
 				substitute(ses, buf, var, SUB_SEC);
 
-				if (src[3] == ENV_SEND && !strcmp(sub2, "VAR"))
-				{
-					client_telopt_debug(ses, "RCVD IAC SB NEW-ENVIRON SEND %s %s", sub2, var);
+				client_telopt_debug(ses, "RCVD IAC SB NEW-ENVIRON %s %s %s", sub1, sub2, var);
 
-					check_all_events(ses, EVENT_FLAG_TELNET, 0, 4, "IAC SB NEW-ENVIRON", sub1, sub2, var, "");
+				check_all_events(ses, EVENT_FLAG_TELNET, 0, 4, "IAC SB NEW-ENVIRON", sub1, sub2, var, src[4] == IAC ? "USERVAR" : "");
 
+				if (src[3] == ENV_SEND && !strcmp(sub2, "VAR"))
+				{
 					if (!check_all_events(ses, EVENT_FLAG_CATCH, 0, 4, "CATCH IAC SB NEW-ENVIRON", sub1, sub2, var, ""))
 					{
 						check_all_events(ses, EVENT_FLAG_TELNET, 1, 4, "IAC SB NEW-ENVIRON SEND %s", var, sub1, sub2, var, "");

+ 1 - 1
src/tintin.h

@@ -212,7 +212,7 @@
 
 
 #define CLIENT_NAME              "TinTin++"
-#define CLIENT_VERSION           "2.02.41 "
+#define CLIENT_VERSION           "2.02.42b"
 
 
 #define XT_E                            0x27