summaryrefslogtreecommitdiff
path: root/src/cli
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/CVS/Entries4
-rwxr-xr-xsrc/cli/cli.cpp11
-rwxr-xr-xsrc/cli/cli.h11
3 files changed, 12 insertions, 14 deletions
diff --git a/src/cli/CVS/Entries b/src/cli/CVS/Entries
index 10c9656..a4cf157 100644
--- a/src/cli/CVS/Entries
+++ b/src/cli/CVS/Entries
@@ -1,3 +1,3 @@
-/cli.cpp/1.28/Mon Feb 28 18:03:02 2005//
-/cli.h/1.13/Mon Feb 21 02:14:23 2005//
+/cli.cpp/1.26/Mon Feb 21 01:55:49 2005//
+/cli.h/1.12/Mon Feb 21 01:55:49 2005//
D
diff --git a/src/cli/cli.cpp b/src/cli/cli.cpp
index 96a0010..2956264 100755
--- a/src/cli/cli.cpp
+++ b/src/cli/cli.cpp
@@ -30,15 +30,15 @@ cli::parse_input( string s_input )
if ( s_input.compare("help") == 0 || s_input.compare("h") == 0)
{
- cout << CLIPRMO << "COMMAND LINE INTERFACE HELP MENU" << endl
- << CLIPRMO << " !command - Uses system to run a command" << endl;
+ cout << CLIPRMO << "COMMAND LINE INTERFACE HELP MENU" << endl;
+ cout << CLIPRMO << " !command - Uses system to run a command" << endl;
#ifdef DEBUG
cout << CLIPRMO << " (d)ebug - Starts debug routine (cli.cpp)" << endl;
#endif
- cout << CLIPRMO << " (e)cho VAR - Prints out configuration value of VAR" << endl;
- cout << CLIPRMO << " Wildcards can be used too, example: echo http*" << endl;
+ cout << CLIPRMO << " (e)cho VAR - Prints out configuration value of VAR" << endl
+ << CLIPRMO << " Wildcards can be used too, example: echo http*" << endl;
#ifdef NCURSES
cout << CLIPRMO << " (ex)it - Quits CLI mode and respawns ncurses mode" << endl;
@@ -70,9 +70,8 @@ cli::parse_input( string s_input )
system( s_input.substr(1).c_str() );
cout << CLIPRMI;
}
-
#ifdef DEBUG
- else if ( s_input.compare("d") == 0 || s_input.compare("debug") == 0 )
+ else if( s_input.compare("d") == 0 || s_input.compare("debug") == 0 )
{
debug_routine();
cout << CLIPRMI;
diff --git a/src/cli/cli.h b/src/cli/cli.h
index 23e1d1c..88b99ef 100755
--- a/src/cli/cli.h
+++ b/src/cli/cli.h
@@ -24,14 +24,13 @@
using namespace std;
+class cli
#ifndef NCURSES
-class cli : public thro
-{
-#else
-class cli
-{
+ : public thro
#endif
-private:
+{
+
+ private:
int parse_input(string s_input);
public: