By "alter colors", I mean something like change black from #000000 to #111111, and by "TTY console", I mean what you get when you do Ctrl+Alt+F1 from X11, not a terminal emulator like xterm or urxvt.

I'm using Arch Linux, but I think it has more to do with the program providing the TTY (agetty, I think).

link|improve this question

75% accept rate
Terminals don't operate in terms of hex colors - they use color codes like those found in "/etc/shell-colors". – new123456 Jul 23 '11 at 4:55
@new123456 - I don't have any file called "shell-colors" anywhere under / – Austin Hyde Jul 23 '11 at 18:27
Huh. You don't state your distribution here - I am running Zenwalk, so you're distribution may vary. Search for color in bash to get a list of all the escapes. – new123456 Jul 23 '11 at 21:24
@new123456 - I did mention that I was using Arch, and I'm not looking for bash escape sequences for colors, like \e[0;30m for black, I'm looking for a way to customize the actual color for each named color. – Austin Hyde Jul 23 '11 at 23:11
1. Sorry - I look at tags first ;) 2. Just information, not entirely pertinent to the question but pertinent to the domain. – new123456 Jul 24 '11 at 2:16
feedback

1 Answer

up vote 0 down vote accepted

The setterm command is what you're looking for.

setterm -foreground black -background white

EDIT

No, there is no way to alter the names of the colors as you requested. They are not referenced that way anywhere in curses, terminfo, or the terminal itself. You could change the definitions of the color indexes (0-15 i think) by editing the kernel source and recompiling.

link|improve this answer
No, that is not what I'm looking for. I want to change the definitions of colors, not the foreground and background color. – Austin Hyde Jul 23 '11 at 18:22
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.