From c186d3b0301042af5d1fd834b24fee624574ea07 Mon Sep 17 00:00:00 2001 From: Valk Richard Li <48872266+ValKmjolnir@users.noreply.github.com> Date: Fri, 10 Apr 2020 04:27:19 -0700 Subject: [PATCH] update --- version2.0/main.cpp | 10 +++++++--- version2.0/nasal_lexer.h | 14 +++++++++++++- version2.0/nasal_runtime.h | 2 +- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/version2.0/main.cpp b/version2.0/main.cpp index 8965282..a6a9626 100644 --- a/version2.0/main.cpp +++ b/version2.0/main.cpp @@ -20,6 +20,10 @@ nasal_runtime runtime; std::string command; int main() { +#ifdef _WIN32 + // use chcp 65001 to use unicode io + system("chcp 65001"); +#endif // this curve looks really cool std::cout<<" __ _ "<> [system] Windows system."<> [system] Windows system."<> [system] Linux system."<> [system] Linux system."<> [system] MacOS system."<> [system] MacOS system."<> Nasal interpreter ver 2.0 ."<> Code: https://github.com/ValKmjolnir/Nasal-Interpreter"<=0) + break; + tmp.push_back(source_code[i]); + } + std::cout<> [Runtime] process exited after "<> [Runtime] process exited after "<