Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
코드 시인성 개선
Browse files Browse the repository at this point in the history
  • Loading branch information
BackGwa committed Dec 4, 2023
1 parent 2615541 commit d43f1d6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/DoKevEngine/shell.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}
}
}

0 comments on commit d43f1d6

Please sign in to comment.