Added display ansi and display ansi pause menu commands
This commit is contained in:
parent
5543f94e01
commit
e2fc322fcc
16
src/menus.c
16
src/menus.c
@ -52,6 +52,8 @@
|
|||||||
#define MENU_FILESCAN 42
|
#define MENU_FILESCAN 42
|
||||||
#define MENU_FULLMAILSCAN 43
|
#define MENU_FULLMAILSCAN 43
|
||||||
#define MENU_FILESEARCH 44
|
#define MENU_FILESEARCH 44
|
||||||
|
#define MENU_DISPTXTFILE 45
|
||||||
|
#define MENU_DISPTXTFILEPAUSE 46
|
||||||
|
|
||||||
extern struct bbs_config conf;
|
extern struct bbs_config conf;
|
||||||
extern struct user_record *gUser;
|
extern struct user_record *gUser;
|
||||||
@ -206,6 +208,10 @@ int menu_system(char *menufile) {
|
|||||||
menu[menu_items-1]->command = MENU_FULLMAILSCAN;
|
menu[menu_items-1]->command = MENU_FULLMAILSCAN;
|
||||||
} else if (strncasecmp(&buffer[8], "FILESEARCH", 10) == 0) {
|
} else if (strncasecmp(&buffer[8], "FILESEARCH", 10) == 0) {
|
||||||
menu[menu_items-1]->command = MENU_FILESEARCH;
|
menu[menu_items-1]->command = MENU_FILESEARCH;
|
||||||
|
} else if (strncasecmp(&buffer[8], "DISPLAYTXTFILE", 14) == 0) {
|
||||||
|
menu[menu_items-1]->command = MENU_DISPTXTFILE;
|
||||||
|
} else if (strncasecmp(&buffer[8], "DISPLAYTXTFILEPAUSE", 19) == 0) {
|
||||||
|
menu[menu_items-1]->command = MENU_DISPTXTFILEPAUSE;
|
||||||
}
|
}
|
||||||
} else if (strncasecmp(buffer, "SECLEVEL", 8) == 0) {
|
} else if (strncasecmp(buffer, "SECLEVEL", 8) == 0) {
|
||||||
menu[menu_items-1]->seclevel = atoi(&buffer[9]);
|
menu[menu_items-1]->seclevel = atoi(&buffer[9]);
|
||||||
@ -513,6 +519,16 @@ int menu_system(char *menufile) {
|
|||||||
case MENU_FILESEARCH:
|
case MENU_FILESEARCH:
|
||||||
file_search();
|
file_search();
|
||||||
break;
|
break;
|
||||||
|
case MENU_DISPTXTFILE:
|
||||||
|
if (menu[i]->data != NULL) {
|
||||||
|
s_displayansi_pause(menu[i]->data, 0);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case MENU_DISPTXTFILEPAUSE:
|
||||||
|
if (menu[i]->data != NULL) {
|
||||||
|
s_displayansi_pause(menu[i]->data, 1);
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user