From: David Hansen <usenetjunk.nospam@gmx.net>
Subject: emacs -nw, screen and 256 colors
Date: Mon, 26 Apr 2004 21:11:33 +0200 [thread overview]
Message-ID: <87u0z65zbu.fsf@robotron.ath.cx> (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
next reply other threads:[~2004-04-26 19:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-26 19:11 David Hansen [this message]
2004-04-26 19:43 ` emacs -nw, screen and 256 colors 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87u0z65zbu.fsf@robotron.ath.cx \
--to=usenetjunk.nospam@gmx.net \
--cc=david.hansen.no.spam@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).