diff options
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2007-03-20 08:51:20 +0000 |
---|---|---|
committer | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2007-03-20 08:51:20 +0000 |
commit | 1a935bfd5921b8efa4e913a8663dcea83e0fb4d1 (patch) | |
tree | 7470d194680f4509775ce603b99327211933226c /src/term.c | |
parent | 54b3b62f17d5be5ad64d309b72f673dbb5529091 (diff) | |
download | emacs-1a935bfd5921b8efa4e913a8663dcea83e0fb4d1.tar.gz |
Include blockinput.h.
(write_glyphs, insert_glyphs): Add BLOCK_INPUT around fwrite.
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index e407aec2fe1..556ae9f65b1 100644 --- a/src/term.c +++ b/src/term.c @@ -38,6 +38,7 @@ Boston, MA 02110-1301, USA. */ #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 @@ write_glyphs (string, len) 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 @@ insert_glyphs (start, len) 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); |