summaryrefslogtreecommitdiff
path: root/Source/Applications/PaperWork
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-12-20 13:33:28 +0100
committerAlexis211 <alexis211@gmail.com>2009-12-20 13:33:28 +0100
commit07a73aea7acbf0d9f9182bc3557583aa17af0000 (patch)
tree983e7b70b4d836c4050b8f350d7bd1e7250058b4 /Source/Applications/PaperWork
parenta804601188be682ce87e6a9591286e8c8ab2817d (diff)
downloadMelon-07a73aea7acbf0d9f9182bc3557583aa17af0000.tar.gz
Melon-07a73aea7acbf0d9f9182bc3557583aa17af0000.zip
[not really working] Started work on OStream
Diffstat (limited to 'Source/Applications/PaperWork')
-rw-r--r--Source/Applications/PaperWork/PaperWork.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Applications/PaperWork/PaperWork.cpp b/Source/Applications/PaperWork/PaperWork.cpp
index 4f9cb0e..ac6f26d 100644
--- a/Source/Applications/PaperWork/PaperWork.cpp
+++ b/Source/Applications/PaperWork/PaperWork.cpp
@@ -1,6 +1,7 @@
#include <App/ShellApp.proto.h>
#define DEFAULT_SHELL "/Applications/Shell/Shell.app"
+#define PAPERWORK_PATH "/System/Applications/PaperWork.app"
class PaperWork : public ShellApp {
public:
@@ -20,7 +21,7 @@ int PaperWork::run() {
if (act == "init") {
while (1) {
- Process p = Process::run("/System/Applications/PaperWork.app");
+ Process p = Process::run(PAPERWORK_PATH);
if (p.valid()) {
p.setInVT(invt);
p.setOutVT(outvt);
@@ -35,15 +36,15 @@ int PaperWork::run() {
outvt << "Logging in to Melon\n";
String user, pw;
while (1) {
- outvt << "Username: ";
+ outvt << "Username: " << FLUSH;
user = invt.readLine();
- outvt << "Password: ";
+ outvt << "Password: " << FLUSH;
pw = invt.readLine(false);
if (!Process::get().authenticatePW(user, pw)) {
outvt << "Authentication failed.\n\n";
continue;
}
- outvt << "What shell to run [" << sFlag("shell") << "]? ";
+ outvt << "What shell to run [" << sFlag("shell") << "]? "<< FLUSH;
String sh = invt.readLine();
if (sh == "") sh = sFlag("shell");
Process p = Process::run(sh);