While messing with my Linux console recently, I stumbled upon the console_codes(4) man page. Apparently there are Linux-specific escape codes to redefine the color palette. Awesome! I’ve always preferred the “Tango” terminal palette that recently became the default in gnome-terminal. Now I can use it outside of X.
Everybody likes screenshots: before and after.
Update: Apparently PuTTY supports these escapes as well.
Using the escape codes to change the palette is quite laborious, so I decided to write a small program to make it easier to switch between various palettes. You can find it here.
There is one problem though. The Linux console doesn’t allow you to set the default foreground/backround colors independently of the color palette, as you can do in most GUI terminal emulators. In the absence of any ANSI color espaces, Linux uses the first and last colors of the palette for the background and foreground (text), respectively. This means that if I were to reuse the Tango palette verbatim in the Linux console, the background would be dark grey and the text would be almost white. This makes man pages harder to read, and I prefer a black background with medium gray text anyway, as is the default in the Linux console. To solve this, I created a palette called “tango-dark” with the first color black and the last color medium grey, and called the unmodified palette “tango-light”.
In addition to the gnome-terminal palettes (rxvt, tango, xterm), I also added KDE Konsole’s palette, as well as the color palette used by the Sinclair Spectrum, since it mostly fits the ANSI palette (it has black listed twice, so I replaced one with a dark grey color, which it was missing).
So, assuming Perl is installed, the program can be installed on most distributions in the following manner:
# cpan -i App::ConPalette
Then do:
conpalette --help
I played with the escape sequences, but I didn’t fancy adding yet more code to my login scripts. It turns out that changing the default console palette globally can be achieved with an ioctl. Here is some sample code that changes palette slot 7 (“normal white”) to AntiqueWhite from X11’s rgb.txt.
http://ondioline.org/~paul/palette-diddler.c
Comment by Paul Collins — August 6, 2008 @ 12:04 am
Hey I love your style I will subscribe for your feed please keep posting! Be careful.
Comment by Scottie Confalone — September 21, 2010 @ 1:55 pm
This is a nice web site. Good fresh interface and nice informative blogs. I will be coming back soon, thanks for the great blog. As soon as we decided to combine our finances, we came up with a plan to pay off her debt, and it resolved around finding a cheap credit card nearly every month to shift account balances.
Comment by Pete Venus — October 2, 2010 @ 12:21 pm
Successful weight loss cannot be bought, it needs to be a way of life. In studies, people taking this miracle plant extract have cut their calorie intake by up to 1000 calories per day, which can add up to substantial weight loss.
Comment by Alisa Cowper — October 9, 2010 @ 6:52 pm
It is every webmasters dream to have huge amounts of traffic isn’t it? I would like to to share with you a brand new program that came out Dec 28 2010 that is make people a HUGE amount of money. Go to this website and take a quick look. Mass Money Makers
Comment by HiskCaxia — January 2, 2011 @ 8:43 pm
eifydoueo Rico Strong
Comment by HiskCaxia — January 5, 2011 @ 2:41 pm
Practice makes perfect.
Comment by busty babes shower — January 10, 2011 @ 6:03 pm
Hey I was browsing for your website feed to my google reader, but I could not locate it. Can you post a link to it?
Comment by Cecelia Olide — January 19, 2011 @ 7:45 pm
Having an experienced motorcycle accident lawyer to represent you in the event of being hit is the wisest decision you can make in protecting yourself and getting compensation for medical bills, damage to your bike, and in case of serious injury, enough money to cover your future medical bills and needs. These private insurance companies, sometimes called Medicare Carriers or Fiscal Intermediaries, are charged with and responsible for accepting Medicare claims, determining coverage, and making payments from the Medicare Trust Fund.
Comment by Deandre Richcreek — January 28, 2011 @ 6:28 am
Thank you for that wise critique. Me & my neighbour were preparing to do some research about that. We got a excellent book on that matter from our local library and most books where not as influensive as your information. I am very glad to see this kind of info which I was searching for a lengthy time.
Comment by replacement windows charleston sc — February 16, 2011 @ 3:29 am
What I wouldnt give to have a debate with you about this. You just say so many things that come from nowhere that Im fairly certain Id have a fair shot. Your weblog is terrific visually, I mean people wont be bored. But others who can see past the videos and the layout wont be so impressed together with your generic understanding of this topic.
Comment by commercial hard money loans — February 16, 2011 @ 3:30 am
Thanks for taking the time to discuss this, I really feel strongly about it and really like understanding far more on this topic. If feasible, as you acquire knowledge, would you mind updating your weblog with far more data? It is very helpful for me.
Comment by ArticleRanks — February 16, 2011 @ 5:10 am
How is it that just anybody can publish a blog and get as popular as this? Its not like youve said anything extremely impressive –more like youve painted a pretty picture more than an issue that you know nothing about! I dont want to sound mean, here. But do you genuinely think that you can get away with adding some quite pictures and not definitely say anything?
Comment by bob grieve — February 16, 2011 @ 6:19 am
What I wouldnt give to have a debate with you about this. You just say so many things that come from nowhere that Im quite sure Id have a fair shot. Your blog is great visually, I mean people wont be bored. But others who can see past the videos and the layout wont be so impressed together with your generic understanding of this subject.
Comment by kreditkarte für studenten — February 16, 2011 @ 6:20 am
Just a fast hello and also to thank you for discussing your ideas on this page. I wound up inside your weblog right after researching physical fitness connected issues on Yahoo… guess I lost track of what I had been performing! Anyway I’ll be back as soon as once more inside the future to verify out your blogposts down the road. Thanks!
Comment by avocat toulon — February 16, 2011 @ 9:25 pm
Thanks for taking the time to discuss this, I really feel strongly about it and love knowing additional on this topic. If possible, as you gain experience, would you mind updating your blog with more information? It’s very helpful for me.
Comment by Furniture — February 17, 2011 @ 12:13 am
Thanks a million. This was nice seeing
Comment by Navi Biglietti per la Grecia — March 30, 2011 @ 6:21 pm
I actually surely need to think even more in that direction and see things i can do over it.
Comment by Merle Pridgeon — April 8, 2011 @ 1:49 am
Just desire to say your article is as astounding. The clearness in your article is simply spectacular and i could assume you are an expert on this subject. Fine with your permission allow me to grab your feed to keep updated with forthcoming blog post. Thanks a million and please keep up the enjoyable work. Regards,
Comment by fine art — May 23, 2011 @ 6:44 pm
Thanks for your tips. One thing we’ve noticed is banks and financial institutions are aware of the spending behaviors of consumers while also understand that most of the people max outside their own credit cards around the getaways. They sensibly take advantage of this kind of fact and commence flooding a person’s inbox plus snail-mail box along with hundreds of 0 APR credit card offers right after the holiday season ends. Knowing that for anyone who is like 98% in the American community, you’ll soar at the possible opportunity to consolidate credit card debt and move balances towards 0 apr interest rates credit cards.
Comment by Pharmacy — July 21, 2011 @ 8:16 am
PhatPad скачать агент на телефон симбиан Viewer – бесплатная программа для просмотра на смартфоне заметок, скачать драйвера на lg gdr-h30n созданных в программе PhatPad.
Позволяет просматривать страницы, воспроизводит голосовые скачать драйвера на звук dell inspiron 1546 заметки.
Comment by bedsbeipt — July 22, 2011 @ 2:39 pm
http://www.copiertech.ro/ Tehnologia digitala a impus conectivitatea in reteaua informatica a echipamentelor, acestea dobandind functii noi: printarea in retea, producerea, manipularea si distributia documentelor in format electronic, mai pe scurt-”managementul documentelor”.
Comment by service copiatoare — August 1, 2011 @ 5:26 pm
you may have an awesome blog here! would you wish to make some invite posts on my blog?
Comment by amish lancaster pa — August 3, 2011 @ 4:12 pm
Youre so cool! I dont suppose Ive read anything like this before. So nice to find somebody with some original thoughts on this subject. realy thank you for starting this up. this website is something that is needed on the web, someone with a little originality. useful job for bringing something new to the internet!
Comment by Allegro.pl — August 3, 2011 @ 4:16 pm
Nice post!
Comment by it services austin — August 3, 2011 @ 4:38 pm
I’m impressed, I must say.
Comment by austin it services — August 8, 2011 @ 8:40 pm
Good day! I just would like to give a huge thumbs up for the nice information you have got right here on this post. I might be coming back to your weblog for extra soon.
Comment by uggs on sale cleaning boots — August 29, 2011 @ 7:41 am
I was very encouraged to find this website. The reason being that this is such an informative post. I wanted to thank you for this detailed read of the subject. I certainly savored each and every little bit of it and I have you bookmarked to take a look at new stuff you post.
Comment by key163 — September 7, 2011 @ 8:33 am
whoah this particular site is great i really like reading your posts. Sustain the truly great works of art! You feel, lots of people are researching this info, you can facilitate these significantly.
Comment by Burt Misiaszek — September 7, 2011 @ 9:13 am
Thanks for your posting on this site. From my own personal experience, often times softening right up a photograph might provide the photography with a bit of an creative flare. Many times however, that soft blur isn’t just what you had at heart and can frequently spoil an otherwise good snapshot, especially if you anticipate enlarging them.
Comment by Audra Goshow — September 21, 2011 @ 2:34 pm
I’m seeing mentions show up in my timeline that are missing from my @ mentions …so frustrating! Pls fix this API issue @twitter!
Comment by ISAAC — October 11, 2011 @ 1:22 pm
Im by employing a very little issue I cant subscribe your feed, Im using google reader fyi. My mate which I even have been simply talking over this excellent topic, she happens to be continually endeavouring to prove me incorrect! i will be able to show her this kind of post in addition to rub it in the little!
Comment by Lily Mccann — October 28, 2011 @ 8:38 am