Mercurial > hg > octave-nkf > gnulib-hg
changeset 11427:3a43601489ad
lib/readline.c (readline): Call fflush on stdout after printing prompt.
author | Simon Josefsson <simon@josefsson.org> |
---|---|
date | Tue, 24 Mar 2009 08:11:31 +0100 |
parents | d40b890c5200 |
children | 766299801152 |
files | ChangeLog lib/readline.c |
diffstat | 2 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +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.
--- a/lib/readline.c +++ b/lib/readline.c @@ -1,5 +1,5 @@ /* 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 @@ -39,7 +39,10 @@ size_t size = 0; if (prompt) - fputs (prompt, stdout); + { + fputs (prompt, stdout); + fflush (stdout); + } if (getline (&out, &size, stdin) < 0) return NULL;