finish terminal helper

This commit is contained in:
2024-05-20 21:41:48 +08:00
parent 7258c4c92b
commit 6ebb457bd1
14 changed files with 272 additions and 212 deletions

View File

@ -7,12 +7,6 @@
namespace YYCC::IOHelper {
void Gets(std::string& u8cmd) {
std::wstring wcmd;
std::getline(std::wcin, wcmd);
YYCC::EncodingHelper::WcharToChar(wcmd, u8cmd, CP_UTF8);
}
FILE* FOpen(const char* u8_filepath, const char* u8_mode) {
std::wstring wmode, wpath;
bool suc = YYCC::EncodingHelper::CharToWchar(u8_mode, wmode, CP_UTF8);