|
|
@ -669,11 +669,12 @@ static void console_verboser(const char *s, int pos, int replace, int complete)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
fputs(s + pos,stdout);
|
|
|
|
fputs(s + pos,stdout);
|
|
|
|
fflush(stdout);
|
|
|
|
fflush(stdout);
|
|
|
|
if (complete)
|
|
|
|
if (complete) {
|
|
|
|
/* Wake up a poll()ing console */
|
|
|
|
/* Wake up a poll()ing console */
|
|
|
|
if (option_console && consolethread != AST_PTHREADT_NULL)
|
|
|
|
if (option_console && consolethread != AST_PTHREADT_NULL)
|
|
|
|
pthread_kill(consolethread, SIGURG);
|
|
|
|
pthread_kill(consolethread, SIGURG);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static int ast_all_zeros(char *s)
|
|
|
|
static int ast_all_zeros(char *s)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1169,7 +1170,8 @@ static int ast_cli_display_match_list(char **matches, int len, int max)
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
numoutput++; numoutputline++;
|
|
|
|
numoutput++;
|
|
|
|
|
|
|
|
numoutputline++;
|
|
|
|
fprintf(stdout, "%-*s ", max, matches[idx]);
|
|
|
|
fprintf(stdout, "%-*s ", max, matches[idx]);
|
|
|
|
free(matches[idx]);
|
|
|
|
free(matches[idx]);
|
|
|
|
matches[idx] = NULL;
|
|
|
|
matches[idx] = NULL;
|
|
|
|