Is there a way to get the Emacs terminal emulator to support cursor movement escape sequences beyond its vt100 features? A specific example is CHA (Cursor-Character-Absolute), e.g. ESC[0G
should move the cursor to column 0. CHA and a few other sequences were added as part of ISO-6429 (ECMA-48).
Try this rudimentary test in eterm and another terminal emulator:
printf "hello\033[0Gworld\n"
In eterm (M-x term
or M-x multi-term
) you will see:
helloworld
In Terminal.app I see:
world
For a full featured test check out vttest (brew install test
for me).
ansi-color.el
adds support for ECMA-48 color escape sequences, but is only for Emacs shell as it relies on comint: emacswiki.org/emacs/ansi-color.el – toolbear Mar 7 '15 at 6:04