#include "StreamOutputPool.h"
#include "CommandQueue.h"
-//#define DEBUG_PRINTF(...)
-#define DEBUG_PRINTF printf
+#define DEBUG_PRINTF(...)
+//#define DEBUG_PRINTF printf
struct ptentry {
const char *command;
{
sh->output("Available commands: All others are passed on\n");
sh->output("netstat - show network info\n");
- sh->output("? - show network help\n");
+ sh->output("h - show network help\n");
sh->output("help - show command help\n");
sh->output("exit, quit - exit shell\n");
}
}
//#include "clock.h"
-static void test(char *str, Shell *sh)
+static void ntest(char *str, Shell *sh)
{
printf("In Test\n");
{"netstat", connections},
{"exit", quit},
{"quit", quit},
- {"test", test},
- {"?", help},
+ {"ntest", ntest},
+ {"h", help},
/* Default action */
{0, unknown}
{ // add it to the kernels output stream
DEBUG_PRINTF("Shell: Adding stream to kernel streams\n");
THEKERNEL->streams->append_stream(pstream);
- telnet->output("Smoothie command shell\r\n> ");
+ telnet->output("Smoothie command shell\r\n");
+ telnet->output_prompt(SHELL_PROMPT);
}
int Shell::queue_size()