Support absolute column movement in 'ansi-term'
* lisp/term.el (term-handle-ansi-escape): Handle the "\E[G" sequence for absolute column movement. (Bug#23303)
This commit is contained in:
parent
928f51945d
commit
caa31fcaa2
1 changed files with 4 additions and 0 deletions
|
@ -3260,6 +3260,10 @@ See `term-prompt-regexp'."
|
|||
;; \E[D - cursor left (terminfo: cub)
|
||||
((eq char ?D)
|
||||
(term-move-columns (- (max 1 term-terminal-parameter))))
|
||||
;; \E[G - cursor motion to absolute column (terminfo: hpa)
|
||||
((eq char ?G)
|
||||
(term-move-columns (- (max 0 (min term-width term-terminal-parameter))
|
||||
(term-current-column))))
|
||||
;; \E[J - clear to end of screen (terminfo: ed, clear)
|
||||
((eq char ?J)
|
||||
(term-erase-in-display term-terminal-parameter))
|
||||
|
|
Loading…
Add table
Reference in a new issue