From: Roberto E. Vargas Caballero Date: Wed, 12 Sep 2012 19:51:55 +0000 (+0200) Subject: Remove buffering to fileio instead of calling fflush X-Git-Url: https://git.xinqibao.xyz/st.git/commitdiff_plain/720cb816dcff55f8b75bdc2a8ffa265f460f5d55?ds=sidebyside;hp=720cb816dcff55f8b75bdc2a8ffa265f460f5d55 Remove buffering to fileio instead of calling fflush By default text files are line buffered, and this means that -f option will not write the line until a \n is printed. This is not very useful for debugging, so a call to fflush was added. This patch substitute this call (which will be done by each character painted) by the full remove of the buffering in the file. --- st.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) ---