unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* emacs -nw, screen and 256 colors
@ 2004-04-26 19:11 David Hansen
  2004-04-26 19:43 ` Josh Howard
       [not found] ` <mailman.1767.1083008976.1061.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: David Hansen @ 2004-04-26 19:11 UTC (permalink / raw)



Hi,

I'm using (emacs-version)

"GNU Emacs 21.3.50.1 (i686-pc-linux-gnu, X toolkit)
 of 2004-04-26 on robotron"

and would like to use it with GNU screen and 256 colors.
In a xterm without screen emacs can use 256 colors (shown
by `list-colors-display') but when running in screen emacs
shows only 8 colors (even the bold variants color8-color15
doesn't seem to work).

After changing everything in screeninfo.src to
colors#256, pairs#256 the example applications from the
xterm sources display all 256 colors.  Not sure if it's an
emacs or screen problem.

I had a look in the emacs sources but...  actually i don't
understand a single line of term.c ;)

The following c code shows 256 colors and 256 pairs with and
without screen:

/* -*- compile-command: "gcc colors.c -o colors -lncurses" -*- */
#include <ncurses.h>
#include <termcap.h>

int
main(void)
{
        initscr(); start_color();
        printw("# colors: %d\t# pairs: %d\n", COLORS, COLOR_PAIRS);
        printw("# colors: %d\t# pairs: %d\n",
               tgetnum("Co"), tgetnum("pa"));
        refresh(); getch(); endwin();
        return 0;
}

I'm using screen 4.0.2 of course with compiled 256 colors
support.

Did anyone got it to work?

-- David

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-04-28 16:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-26 19:11 emacs -nw, screen and 256 colors David Hansen
2004-04-26 19:43 ` Josh Howard
     [not found] ` <mailman.1767.1083008976.1061.help-gnu-emacs@gnu.org>
2004-04-28  9:05   ` David Hansen
2004-04-28 16:27     ` Josh Howard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).