| 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" |
| 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"; |
| 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"); |