add:添加his接口放出
This commit is contained in:
parent
389837feb3
commit
c477dad67e
@ -212,6 +212,12 @@ void append_his(const std::string& his)
|
||||
his_pos = history.size();
|
||||
}
|
||||
|
||||
void fc_add_his(const char* his_input)
|
||||
{
|
||||
history.push_back(his_input);
|
||||
his_pos = history.size();
|
||||
}
|
||||
|
||||
std::string up_his()
|
||||
{
|
||||
if (history.size() < 1) {
|
||||
|
@ -78,6 +78,13 @@ void fc_turn_on();
|
||||
*/
|
||||
void fc_turn_off();
|
||||
|
||||
/**
|
||||
* @brief 添加输入历史记录。
|
||||
*
|
||||
* @param his_input 输入内容。
|
||||
*/
|
||||
void fc_add_his(const char* his_input);
|
||||
|
||||
/**
|
||||
* @brief 恢复默认终端颜色
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user