Prompt was not showing up until after user submitted a line, because prompts
do not end with a newline, which would trigger fflush(). Adding a fflush() of
stdout fixes this.
fputs(prompt, stdout);
else
dumb_show_prompt(show_cursor, (timeout ? "tTD" : ")>}")[type]);
+ /* Prompt only shows up after user input if we don't flush stdout */
+ fflush(stdout);
dumb_getline(s);
if ((s[0] != '\\') || ((s[1] != '\0') && !islower(s[1]))) {
/* Is not a command line. */