diff options
| author | YAMAMOTO Mitsuharu | 2007-03-20 08:51:20 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2007-03-20 08:51:20 +0000 |
| commit | 1a935bfd5921b8efa4e913a8663dcea83e0fb4d1 (patch) | |
| tree | 7470d194680f4509775ce603b99327211933226c /src | |
| parent | 54b3b62f17d5be5ad64d309b72f673dbb5529091 (diff) | |
| download | emacs-1a935bfd5921b8efa4e913a8663dcea83e0fb4d1.tar.gz emacs-1a935bfd5921b8efa4e913a8663dcea83e0fb4d1.zip | |
Include blockinput.h.
(write_glyphs, insert_glyphs): Add BLOCK_INPUT around fwrite.
Diffstat (limited to 'src')
| -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. */ | |||
| 38 | #include "dispextern.h" | 38 | #include "dispextern.h" |
| 39 | #include "window.h" | 39 | #include "window.h" |
| 40 | #include "keymap.h" | 40 | #include "keymap.h" |
| 41 | #include "blockinput.h" | ||
| 41 | 42 | ||
| 42 | /* For now, don't try to include termcap.h. On some systems, | 43 | /* For now, don't try to include termcap.h. On some systems, |
| 43 | configure finds a non-standard termcap.h that the main build | 44 | configure finds a non-standard termcap.h that the main build |
| @@ -990,11 +991,13 @@ write_glyphs (string, len) | |||
| 990 | conversion_buffer = encode_terminal_code (string, n, coding); | 991 | conversion_buffer = encode_terminal_code (string, n, coding); |
| 991 | if (coding->produced > 0) | 992 | if (coding->produced > 0) |
| 992 | { | 993 | { |
| 994 | BLOCK_INPUT; | ||
| 993 | fwrite (conversion_buffer, 1, coding->produced, stdout); | 995 | fwrite (conversion_buffer, 1, coding->produced, stdout); |
| 994 | if (ferror (stdout)) | 996 | if (ferror (stdout)) |
| 995 | clearerr (stdout); | 997 | clearerr (stdout); |
| 996 | if (termscript) | 998 | if (termscript) |
| 997 | fwrite (conversion_buffer, 1, coding->produced, termscript); | 999 | fwrite (conversion_buffer, 1, coding->produced, termscript); |
| 1000 | UNBLOCK_INPUT; | ||
| 998 | } | 1001 | } |
| 999 | len -= n; | 1002 | len -= n; |
| 1000 | string += n; | 1003 | string += n; |
| @@ -1089,11 +1092,13 @@ insert_glyphs (start, len) | |||
| 1089 | 1092 | ||
| 1090 | if (coding->produced > 0) | 1093 | if (coding->produced > 0) |
| 1091 | { | 1094 | { |
| 1095 | BLOCK_INPUT; | ||
| 1092 | fwrite (conversion_buffer, 1, coding->produced, stdout); | 1096 | fwrite (conversion_buffer, 1, coding->produced, stdout); |
| 1093 | if (ferror (stdout)) | 1097 | if (ferror (stdout)) |
| 1094 | clearerr (stdout); | 1098 | clearerr (stdout); |
| 1095 | if (termscript) | 1099 | if (termscript) |
| 1096 | fwrite (conversion_buffer, 1, coding->produced, termscript); | 1100 | fwrite (conversion_buffer, 1, coding->produced, termscript); |
| 1101 | UNBLOCK_INPUT; | ||
| 1097 | } | 1102 | } |
| 1098 | 1103 | ||
| 1099 | OUTPUT1_IF (TS_pad_inserted_char); | 1104 | OUTPUT1_IF (TS_pad_inserted_char); |