aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
authorKaroly Lorentey2007-04-22 12:12:29 +0000
committerKaroly Lorentey2007-04-22 12:12:29 +0000
commite18c709364b095ea0be8ecabe458ac9a642a252f (patch)
treeefe814a842f932f387b3947c572bf43a548d17ef /src/term.c
parent81088e260b086fe28f36964f32b6338210ec6fd8 (diff)
parent9f25e707aaad5ed14a9448e9c5d345ff0bdbc5a7 (diff)
downloademacs-e18c709364b095ea0be8ecabe458ac9a642a252f.tar.gz
emacs-e18c709364b095ea0be8ecabe458ac9a642a252f.zip
Merged from emacs@sv.gnu.org
Patches applied: * emacs@sv.gnu.org/emacs--devo--0--patch-660 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-661 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-662 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-663 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-664 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-665 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-666 Fix read-only prompt problem in isearch * emacs@sv.gnu.org/emacs--devo--0--patch-667 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-668 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-669 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-670 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-671 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-672 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-673 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-206 Merge from emacs--devo--0 * emacs@sv.gnu.org/gnus--rel--5.10--patch-207 Merge from emacs--devo--0 * emacs@sv.gnu.org/gnus--rel--5.10--patch-208 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-600
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c
index a12f982844c..dcbe3f88a16 100644
--- a/src/term.c
+++ b/src/term.c
@@ -47,6 +47,7 @@ Boston, MA 02110-1301, USA. */
47#include "dispextern.h" 47#include "dispextern.h"
48#include "window.h" 48#include "window.h"
49#include "keymap.h" 49#include "keymap.h"
50#include "blockinput.h"
50#include "syssignal.h" 51#include "syssignal.h"
51#include "systty.h" 52#include "systty.h"
52 53
@@ -695,11 +696,13 @@ tty_write_glyphs (struct frame *f, struct glyph *string, int len)
695 conversion_buffer = encode_terminal_code (string, n, coding); 696 conversion_buffer = encode_terminal_code (string, n, coding);
696 if (coding->produced > 0) 697 if (coding->produced > 0)
697 { 698 {
699 BLOCK_INPUT;
698 fwrite (conversion_buffer, 1, coding->produced, tty->output); 700 fwrite (conversion_buffer, 1, coding->produced, tty->output);
699 if (ferror (tty->output)) 701 if (ferror (tty->output))
700 clearerr (tty->output); 702 clearerr (tty->output);
701 if (tty->termscript) 703 if (tty->termscript)
702 fwrite (conversion_buffer, 1, coding->produced, tty->termscript); 704 fwrite (conversion_buffer, 1, coding->produced, tty->termscript);
705 UNBLOCK_INPUT;
703 } 706 }
704 len -= n; 707 len -= n;
705 string += n; 708 string += n;
@@ -781,11 +784,13 @@ tty_insert_glyphs (struct frame *f, struct glyph *start, int len)
781 784
782 if (coding->produced > 0) 785 if (coding->produced > 0)
783 { 786 {
787 BLOCK_INPUT;
784 fwrite (conversion_buffer, 1, coding->produced, tty->output); 788 fwrite (conversion_buffer, 1, coding->produced, tty->output);
785 if (ferror (tty->output)) 789 if (ferror (tty->output))
786 clearerr (tty->output); 790 clearerr (tty->output);
787 if (tty->termscript) 791 if (tty->termscript)
788 fwrite (conversion_buffer, 1, coding->produced, tty->termscript); 792 fwrite (conversion_buffer, 1, coding->produced, tty->termscript);
793 UNBLOCK_INPUT;
789 } 794 }
790 795
791 OUTPUT1_IF (tty, tty->TS_pad_inserted_char); 796 OUTPUT1_IF (tty, tty->TS_pad_inserted_char);