/[LeafOK_CVS]/lbbs/src/lml.c
ViewVC logotype

Diff of /lbbs/src/lml.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.47 by sysadm, Tue Nov 11 00:28:05 2025 UTC Revision 1.48 by sysadm, Mon Nov 17 12:47:41 2025 UTC
# Line 265  int lml_render(const char *str_in, char Line 265  int lml_render(const char *str_in, char
265    
266                  if (!quote_mode && !lml_tag_disabled && str_in[i] == '\033' && str_in[i + 1] == '[') // Escape sequence                  if (!quote_mode && !lml_tag_disabled && str_in[i] == '\033' && str_in[i + 1] == '[') // Escape sequence
267                  {                  {
268                          for (k = i + 2; isdigit(str_in[k]) || str_in[k] == ';' || str_in[k] == '?'; k++)                          for (k = i + 2; isdigit((int)str_in[k]) || str_in[k] == ';' || str_in[k] == '?'; k++)
269                                  ;                                  ;
270    
271                          if (str_in[k] == 'm') // valid -- copy directly                          if (str_in[k] == 'm') // valid -- copy directly
272                          {                          {
273                                  CHECK_AND_APPEND_OUTPUT(str_out, buf_len, j, str_in + i, k - i + 1, line_width);                                  CHECK_AND_APPEND_OUTPUT(str_out, buf_len, j, str_in + i, k - i + 1, line_width);
274                          }                          }
275                          else if (isalpha(str_in[k]))                          else if (isalpha((int)str_in[k]))
276                          {                          {
277                                  // unsupported ANSI CSI command                                  // unsupported ANSI CSI command
278                          }                          }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1