diff options
author | Alexis211 <alexis211@gmail.com> | 2009-11-08 16:51:30 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-11-08 16:51:30 +0100 |
commit | c712d7f6f801b073920c7b914ee1b95358113893 (patch) | |
tree | b065a2344ddfa66a1e623347b2a8373cc07d02db /Source/Applications/Shell | |
parent | ec6a6922d074da4b64976282333e308deb39aeec (diff) | |
download | Melon-c712d7f6f801b073920c7b914ee1b95358113893.tar.gz Melon-c712d7f6f801b073920c7b914ee1b95358113893.zip |
Introduced V86 mode. It really fits in nicely :)
Diffstat (limited to 'Source/Applications/Shell')
-rw-r--r-- | Source/Applications/Shell/Shell.ns.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Applications/Shell/Shell.ns.cpp b/Source/Applications/Shell/Shell.ns.cpp index cd091d5..d34c360 100644 --- a/Source/Applications/Shell/Shell.ns.cpp +++ b/Source/Applications/Shell/Shell.ns.cpp @@ -26,11 +26,12 @@ u32int run() { while (1) { outvt << "{" << cwd.getName() << "}: "; String s = invt.readLine(); + if (s.empty()) continue; while (s[0] == WChar(" ") or s[0] == WChar("\t")) { s = s.substr(1, s.size() - 1); } - if (s[0] == WChar("#")) continue; if (s.empty()) continue; + if (s[0] == WChar("#")) continue; //Parse string Vector<String> cmd; |