优化模拟终端稳定性

This commit is contained in:
2025-10-01 19:30:44 +08:00
parent 69ce2eed50
commit 3ada071d44
2 changed files with 3 additions and 1 deletions

View File

@ -272,6 +272,8 @@ Ctl *init_tem(log_manager *logmanager)
tem->infifo = infifo;
tem->index = 0;
tem->logmanager = logmanager;
char *his_buf[HISTORY_BUF] = {NULL};
memcpy(tem->history,his_buf,HISTORY_BUF);
for(int i =0;i<6;i++)
{
tem->history[i] = NULL;

View File

@ -6,7 +6,7 @@
#include "interpreter/interpreter.h"
#define MAX_BUF 256
#define HISTORY_BUF 256
#define HISTORY_BUF 210
#define PROMPT "chatbot$$ "