Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • What is the value of the TERM environment variable? It should be something like xterm-256color. Commented Mar 10, 2023 at 8:55
  • @Lindydancer The value of TERM both outside and inside screen is set to xterm-256color. I confirmed both by using echo $TERM. Commented Mar 10, 2023 at 13:17
  • Things to try: force screen to use your chosen screenrc with screen -c myscreenrc. force screen to use your chosen term with screen -T xterm-256color. This is really an issue w/ screen's handling of termcap/terminfo. You could work around it by redefining all your colors in emacs, or learning termcap/terminfo and customizing your term setting in your screenrc (man screen, search for "termcapinfo"). I recommend neither. give byobu or tmux a try. this mess is exactally why i personally switched to tmux Commented Mar 10, 2023 at 15:00