The TERM variable is not set correctly for my emacs. I like to override it using elisp.
I am currently using:
(setenv "TERM" "xterm-kitty")
But this does not seem to work.
PS: I'm running emacs using junest
, which seems to be doing some magic that overrides my TERM=... emacs
invocation. Hence the need to override the terminfo from elisp.
(getenv "TERM")
gives you something different fromxterm-kitty
?(setenv "TERM" "xterm-kitty")
. (I use 24 bit true colors which need the special terminfo.)export TERM=...
to.bashrc
,.bash_profile
, etc. Previously, I usedssh host -t TERM=... emacs
.