1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-29 07:58:28 +00:00

Speed up redisplay in ansi-term mode

* lisp/term.el (ansi-term): Force L2R 'bidi-paragraph-direction'.
(Bug#20611)
This commit is contained in:
Eli Zaretskii 2016-04-16 13:08:30 +03:00
parent 4ab671c48c
commit d6ffd645a8

View File

@ -4151,7 +4151,17 @@ the process. Any more args are arguments to PROGRAM."
;; .emacs ...
(term-set-escape-char ?\C-x))
(switch-to-buffer term-ansi-buffer-name))
(switch-to-buffer term-ansi-buffer-name)
;; For some reason, without the below setting, ansi-term behaves
;; sluggishly, not clear why, since the buffer is typically very
;; small.
;;
;; There's a larger problem here with supporting bidirectional text:
;; the application that writes to the terminal could have its own
;; ideas about displaying bidirectional text, and might not want us
;; reordering the text or deciding on base paragraph direction. One
;; such application is Emacs in TTY mode... FIXME.
(setq bidi-paragraph-direction 'left-to-right))
;;; Serial terminals