优化模拟终端稳定性
This commit is contained in:
@ -272,6 +272,8 @@ Ctl *init_tem(log_manager *logmanager)
|
|||||||
tem->infifo = infifo;
|
tem->infifo = infifo;
|
||||||
tem->index = 0;
|
tem->index = 0;
|
||||||
tem->logmanager = logmanager;
|
tem->logmanager = logmanager;
|
||||||
|
char *his_buf[HISTORY_BUF] = {NULL};
|
||||||
|
memcpy(tem->history,his_buf,HISTORY_BUF);
|
||||||
for(int i =0;i<6;i++)
|
for(int i =0;i<6;i++)
|
||||||
{
|
{
|
||||||
tem->history[i] = NULL;
|
tem->history[i] = NULL;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include "interpreter/interpreter.h"
|
#include "interpreter/interpreter.h"
|
||||||
|
|
||||||
#define MAX_BUF 256
|
#define MAX_BUF 256
|
||||||
#define HISTORY_BUF 256
|
#define HISTORY_BUF 210
|
||||||
#define PROMPT "chatbot$$ "
|
#define PROMPT "chatbot$$ "
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user