From d43f1d6bfbf20b146fa6c95662a9a9ccacdc82ed Mon Sep 17 00:00:00 2001 From: BackGwa Date: Mon, 4 Dec 2023 16:51:08 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=8B=9C=EC=9D=B8?= =?UTF-8?q?=EC=84=B1=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DoKevEngine/shell.hpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/DoKevEngine/shell.hpp b/src/DoKevEngine/shell.hpp index ee94556..b687911 100644 --- a/src/DoKevEngine/shell.hpp +++ b/src/DoKevEngine/shell.hpp @@ -9,16 +9,18 @@ void Shell_open() { cout << BOLD << "DoKev" << VERSION << " | " << SHELL_VERSION << BUILD << RESET << endl; cout << SHELL_MESSAGE << endl << endl; - while(true) { + while (true) { cout << BOLD << "⟩⟩⟩ " << RESET; cin.getline(command, 128); string str_command(command); // 쉘 인터페이스 exit() 방지 - if(Valid(str_command, "exit()")) exit(0); - - parsing(line, command, true); - line++; + if (Valid(str_command, "exit()")) { + exit(0); + } else { + parsing(line, command, true); + line++; + } } } \ No newline at end of file