Without readline, output order of prompt and informative/error output was mixed up

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@922 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Kolja Waschk 17 years ago
parent a8b8052f81
commit df9f2fe92d

@ -247,9 +247,9 @@ jtag_readline_loop( const char *prompt )
line[0] = 0;
do
{
jtag_readline_multiple_commands_support( line );
printf("%s", prompt);
fflush(stdout);
jtag_readline_multiple_commands_support( line );
}
while(fgets(line, 1023, stdin));
#endif

Loading…
Cancel
Save