Discussion:
what is the difference between terminal mode and term mode?
(too old to reply)
Matthew Zhou
2007-03-22 22:11:13 UTC
Permalink
What is the difference between terminal mode set up by M-x
terminal-emulator and term mode set up by M-x term ?
steve gonedes
2021-04-25 15:29:21 UTC
Permalink
Post by Matthew Zhou
What is the difference between terminal mode set up by M-x
terminal-emulator and term mode set up by M-x term ?
From what I can understand. The term.el is for running a program that uses
raw escape codes within emacs. Try running bash wit M-x term.

There is also ansi-term. I think the basic idea was to define attributes
(underline, bold, dim, etc) and colors in a sane way, without using
terminfo.

You should set the environment to the correct terminal settings with
tputs, or start emacs like: TERM=eterm-color emacs

You will need to have the eterm-color terminfo description installed.
Using tic this is simple (that means thank you for tic).

the information is mostly set for termcap, but tic will convert termcap
into terminfo and sorts out the coloring. The information is in the etc/
check.

Great question for sure. anyone else chime in please...

Loading...