From: Jeff Lenk Date: Fri, 7 Oct 2011 14:03:09 +0000 (-0500) Subject: FS-3601 --resolve fix fs_cli for recent changes with windows X-Git-Tag: v1.2-rc1~27^2~362 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1afda8fb39fcd9648be7155d11c7bd27b37580f1;p=thirdparty%2Ffreeswitch.git FS-3601 --resolve fix fs_cli for recent changes with windows --- diff --git a/libs/esl/fs_cli.c b/libs/esl/fs_cli.c index 22906e710f..7c2f67dc49 100644 --- a/libs/esl/fs_cli.c +++ b/libs/esl/fs_cli.c @@ -236,7 +236,7 @@ static int console_bufferInput (char *addchars, int len, char *cmd, int key) return 0; } if (key == KEY_TAB) { - esl_console_complete(cmd, cmd+iCmdBuffer, &cmd[iCmdBuffer-1]); + esl_console_complete(cmd, cmd+iCmdBuffer, cmd+iCmdBuffer); return 0; } if (key == KEY_UP || key == KEY_DOWN || key == CLEAR_OP) { @@ -883,7 +883,14 @@ static const char *banner = "\n" "Type /help to see a list of commands\n\n\n"; -static void print_banner(FILE *stream) { fprintf(stream, "%s%s", output_text_color, banner); } +static void print_banner(FILE *stream) +{ +#ifndef WIN32 + fprintf(stream, "%s%s", output_text_color, banner); +#else + fprintf(stream, "%s", banner); +#endif +} static void set_fn_keys(cli_profile_t *profile) {