Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 172819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:13:59+00:00 2026-05-11T13:13:59+00:00

When I run emacs -nw in an X terminal window, and I ask for

  • 0

When I run emacs -nw in an X terminal window, and I ask for M-x list-colors-display, I am offered a paltry palette:

black                                                      red     green   yellow  blue    magenta cyan    white   

I am told it is possible to get 265 colors. Setting the TERM environment variable to xterm-256color does not do the job. What does?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:14:00+00:00Added an answer on May 11, 2026 at 1:14 pm

    According to this you need ncurses-term library in addition to setting TERM to xterm-256color.

    Okay, this has some other things to try like :

    The xterm in Ubuntu Edgy does not advertise 256 color support by default.  To fix this you need to install a 256 color terminfo entry, and tell xterm to use it:      apt-get install ncurses-term     echo XTerm.termName: xterm-256color \       >>~/.Xdefaults     xrdb -merge ~/.Xdefaults 

    and :

    So you need a file term/screen-256color.el in your load-path.  Emacs 22 expects it to contain a terminal-init-screen defun.  Emacs 21 expects it to contain a bunch of top-level forms.  Here's what I use:      ;;; This is for GNU Emacs 22     (defun terminal-init-screen ()       'Terminal initialization function for screen.'       ;; Use the xterm color initialization code.       (load 'term/xterm')       (xterm-register-default-colors)       (tty-set-up-initial-frame-faces))      ;;; This is for GNU Emacs 21     (if (= 21 emacs-major-version)         (load 'term/xterm-256color'))  For Emacs 21, you also need to install the xterm-256color.el file from      http://www.splode.com/~friedman/software/emacs-lisp/src/term/xterm-256color.el 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I run M-x shell in emacs to get a terminal, it knows where
The version I run on my desktop has Emacs, a common list compiler, and
Using elisp (not interactive key-chords), how can I run a command in emacs terminal
I am on Ubuntu and when I run emacs from the terminal it seems
How can I make Emacs run in terminal (or console) mode by default, as
From what Ive seen. emacs etc.. run in terminal. Is there any benefit to
When I start a terminal in Emacs 23.3.1 it prompts me with Run program:
I run emacs on windows. I use cygwin and I have cygwin versions of
When I run Gnu Emacs under cygwin on Windows and I press ctrl-x ctrl-c
I run the following command in Emacs unsuccessfully C-u How can you clear the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.