fix:修正Unix设置。
This commit is contained in:
parent
65c8996136
commit
0c566d0b0a
@ -78,7 +78,7 @@ namespace fs = std::filesystem;
|
||||
#define SPECIAL_SEQ_1 27
|
||||
#define SPECIAL_SEQ_2 91
|
||||
#define COLOR_TYPE char*
|
||||
#define DEFAULT_TITLE_COLOR "0;30;102"
|
||||
#define DEFAULT_TITLE_COLOR "33"
|
||||
#define DEFAULT_PREDICT_COLOR "90"
|
||||
#define DEFAULT_MAIN_COLOR "0"
|
||||
#endif
|
||||
@ -516,8 +516,14 @@ void fc_set_header(const char* h)
|
||||
header_len = 0;
|
||||
auto v = str_to_vec(header);
|
||||
for (const auto& item : v) {
|
||||
header_len += item.size();
|
||||
if (item.size() > 1) {
|
||||
header_len += 2;
|
||||
}
|
||||
else {
|
||||
header_len += 1;
|
||||
}
|
||||
}
|
||||
int a = 0;
|
||||
}
|
||||
|
||||
char* fc_readline()
|
||||
|
Loading…
x
Reference in New Issue
Block a user