chg: remove double exit text

chg: escape chars didn't work on apple
This commit is contained in:
iceman1001 2018-02-05 16:38:00 +01:00
parent 9ba8655953
commit c72548562e
3 changed files with 4 additions and 5 deletions

View file

@ -55,7 +55,7 @@ static command_t CommandTable[] = {
{"lf", CmdLF, 1, "{ Low Frequency commands... }"}, {"lf", CmdLF, 1, "{ Low Frequency commands... }"},
{"reveng", CmdRev, 1, "Crc calculations from the software reveng 1.44"}, {"reveng", CmdRev, 1, "Crc calculations from the software reveng 1.44"},
{"script", CmdScript, 1, "{ Scripting commands }"}, {"script", CmdScript, 1, "{ Scripting commands }"},
{"quit", CmdQuit, 1, "Exit program"}, {"quit", CmdQuit, 1, ""},
{"exit", CmdQuit, 1, "Exit program"}, {"exit", CmdQuit, 1, "Exit program"},
{NULL, NULL, 0, NULL} {NULL, NULL, 0, NULL}
}; };

View file

@ -57,7 +57,7 @@ int CmdsParse(const command_t Commands[], const char *Cmd) {
matches++; matches++;
} }
} }
if(matches == 1) i = last_match; if (matches == 1) i = last_match;
} }
if (Commands[i].Name) { if (Commands[i].Name) {
@ -76,8 +76,7 @@ char pparent[512] = {0};
char *parent = pparent; char *parent = pparent;
void dumpCommandsRecursive(const command_t cmds[], int markdown) { void dumpCommandsRecursive(const command_t cmds[], int markdown) {
if (cmds[0].Name == NULL) if (cmds[0].Name == NULL) return;
return;
int i = 0; int i = 0;
int w_cmd = 25; int w_cmd = 25;

View file

@ -69,7 +69,7 @@ struct receiver_arg {
int run; int run;
}; };
#if defined(__linux__) || (__APPLE__) #if defined(__linux__)
static void showBanner(void){ static void showBanner(void){
printf("\n\n"); printf("\n\n");
printf("\e[34m██████╗ ███╗ ███╗ ████╗\e[0m ...iceman fork\n"); printf("\e[34m██████╗ ███╗ ███╗ ████╗\e[0m ...iceman fork\n");