+2009-03-24 Simon Josefsson <simon@josefsson.org>
+
+ * lib/readline.c (readline): Call fflush on stdout after printing
+ prompt.
+
2009-03-20 Bruno Haible <bruno@clisp.org>
Remove dependency from 'close' module to -lws2_32 on native Windows.
/* readline.c --- Simple implementation of readline.
- Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
Written by Simon Josefsson
This program is free software: you can redistribute it and/or modify
size_t size = 0;
if (prompt)
- fputs (prompt, stdout);
+ {
+ fputs (prompt, stdout);
+ fflush (stdout);
+ }
if (getline (&out, &size, stdin) < 0)
return NULL;