blueloveTH 2023-09-22 21:41:57 +08:00
parent 1e01b12805
commit 4d9699f290

View File

@ -68,6 +68,12 @@ int main(int argc, char** argv){
if(argc == 1){ if(argc == 1){
void* repl = pkpy_new_repl(vm); void* repl = pkpy_new_repl(vm);
#if _WIN32
SetConsoleCP(CP_UTF8);
SetConsoleOutputCP(CP_UTF8);
#endif
bool need_more_lines = false; bool need_more_lines = false;
while(true){ while(true){
std::cout << (need_more_lines ? "... " : ">>> "); std::cout << (need_more_lines ? "... " : ">>> ");