fix:修正Unix设置。

This commit is contained in:
taynpg 2025-02-11 11:25:29 +08:00
parent 65c8996136
commit 0c566d0b0a

View File

@ -78,7 +78,7 @@ namespace fs = std::filesystem;
#define SPECIAL_SEQ_1 27 #define SPECIAL_SEQ_1 27
#define SPECIAL_SEQ_2 91 #define SPECIAL_SEQ_2 91
#define COLOR_TYPE char* #define COLOR_TYPE char*
#define DEFAULT_TITLE_COLOR "0;30;102" #define DEFAULT_TITLE_COLOR "33"
#define DEFAULT_PREDICT_COLOR "90" #define DEFAULT_PREDICT_COLOR "90"
#define DEFAULT_MAIN_COLOR "0" #define DEFAULT_MAIN_COLOR "0"
#endif #endif
@ -516,8 +516,14 @@ void fc_set_header(const char* h)
header_len = 0; header_len = 0;
auto v = str_to_vec(header); auto v = str_to_vec(header);
for (const auto& item : v) { 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() char* fc_readline()