# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1174380680 0 # Node ID c53e7d075f1ac4468fa9af65ef6142b52454b370 # Parent 2fb8fb4a9bab87bdd9efd7e13b31e3f52169d600 Include blockinput.h. (write_glyphs, insert_glyphs): Add BLOCK_INPUT around fwrite. diff -r 2fb8fb4a9bab -r c53e7d075f1a src/term.c --- a/src/term.c Tue Mar 20 08:51:03 2007 +0000 +++ b/src/term.c Tue Mar 20 08:51:20 2007 +0000 @@ -38,6 +38,7 @@ #include "dispextern.h" #include "window.h" #include "keymap.h" +#include "blockinput.h" /* For now, don't try to include termcap.h. On some systems, configure finds a non-standard termcap.h that the main build @@ -990,11 +991,13 @@ conversion_buffer = encode_terminal_code (string, n, coding); if (coding->produced > 0) { + BLOCK_INPUT; fwrite (conversion_buffer, 1, coding->produced, stdout); if (ferror (stdout)) clearerr (stdout); if (termscript) fwrite (conversion_buffer, 1, coding->produced, termscript); + UNBLOCK_INPUT; } len -= n; string += n; @@ -1089,11 +1092,13 @@ if (coding->produced > 0) { + BLOCK_INPUT; fwrite (conversion_buffer, 1, coding->produced, stdout); if (ferror (stdout)) clearerr (stdout); if (termscript) fwrite (conversion_buffer, 1, coding->produced, termscript); + UNBLOCK_INPUT; } OUTPUT1_IF (TS_pad_inserted_char);