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

Diff of /lbbs/src/editor.c

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

Revision 1.58 by sysadm, Mon Nov 10 07:23:16 2025 UTC Revision 1.61 by sysadm, Wed Dec 17 03:47:00 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 "bbs.h"  #include "bbs.h"
14  #include "common.h"  #include "common.h"
15  #include "editor.h"  #include "editor.h"
# Line 23  enum _editor_constant_t Line 27  enum _editor_constant_t
27  {  {
28          EDITOR_MEM_POOL_LINE_PER_CHUNK = 1000,          EDITOR_MEM_POOL_LINE_PER_CHUNK = 1000,
29          EDITOR_MEM_POOL_CHUNK_LIMIT = (MAX_EDITOR_DATA_LINES / EDITOR_MEM_POOL_LINE_PER_CHUNK + 1),          EDITOR_MEM_POOL_CHUNK_LIMIT = (MAX_EDITOR_DATA_LINES / EDITOR_MEM_POOL_LINE_PER_CHUNK + 1),
         TAB_SIZE = 4,  
30  };  };
31    
32  static const char EDITOR_ESC_DISPLAY_STR[] = "\033[32m*\033[m";  static const char EDITOR_ESC_DISPLAY_STR[] = "\033[32m*\033[m";
# Line 971  int editor_display(EDITOR_DATA *p_editor Line 974  int editor_display(EDITOR_DATA *p_editor
974                                  switch (ch)                                  switch (ch)
975                                  {                                  {
976                                  case KEY_NULL:                                  case KEY_NULL:
977    #ifdef _DEBUG
978                                          log_error("KEY_NULL\n");                                          log_error("KEY_NULL\n");
979    #endif
980                                          goto cleanup;                                          goto cleanup;
981                                  case KEY_TIMEOUT:                                  case KEY_TIMEOUT:
982                                          log_error("User input timeout\n");                                          log_error("User input timeout\n");


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

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