/[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.46 by sysadm, Mon Nov 10 11:54:30 2025 UTC Revision 1.48 by sysadm, Mon Nov 17 12:47:41 2025 UTC
# Line 6  Line 6 
6   * Copyright (C) 2004-2025  Leaflet <leaflet@leafok.com>   * Copyright (C) 2004-2025  Leaflet <leaflet@leafok.com>
7   */   */
8    
9    #ifdef HAVE_CONFIG_H
10    #include "config.h"
11    #endif
12    
13  #include "common.h"  #include "common.h"
14  #include "lml.h"  #include "lml.h"
15  #include "log.h"  #include "log.h"
# Line 261  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