Add Color to man Pages
man pages are an integral part of Linux folklore. Even seasoned Linux users have to refer to man pages every once in a while. Wouldn't it be so much more fun with a little added color?
If you run X windows, it is not much trouble to add some color to the otherwise very technical and curt manuals. Just copy the file called XTerm under app-defaults directory:
$ cp /usr/share/X11/app-defaults/XTerm ~/.Xdefaults
Edit the file and uncomment these lines:
*VT100*colorULMode: on *VT100*colorUL: yellow !*VT100*italicULMode: on *VT100*underLine: off ! Uncomment this to use color for the bold attribute *VT100*colorBDMode: on *VT100*colorBD: red
Enjoy the colorful man pages! Of course you could try colors other than red and yellow.
This Tech Tip comes from Girish in India. Thanks, Girish!
Instant fame is easy at Linux Journal. Just send us your useful Tech Tips to share with the Linux Community, and we'll send you a cool t-shirt for your efforts!
Please note: Tech Tips featured in this specific section of LinuxJournal.com are kindly brought to us by readers and are not necessarily tested by LinuxJournal.com editors.
Trending Topics
| You Need A Budget | Feb 10, 2012 |
| The Linux powered LAN Gaming House | Feb 08, 2012 |
| Creating a vDSO: the Colonel's Other Chicken | Feb 06, 2012 |
| Your CMS Is Not Your Web Site | Feb 01, 2012 |
| Casper, the Friendly (and Persistent) Ghost | Jan 31, 2012 |
| Razor-qt 0.4 - Qt based Desktop Environment | Jan 30, 2012 |
- Fun with ethtool
- Parallel Programming with NVIDIA CUDA
- Readers' Choice Awards 2011
- 100% disappointed with the decision to go all digital.
- Linux-Based X Terminals with XDMCP
- Validate an E-Mail Address with PHP, the Right Way
- You Need A Budget
- The Linux powered LAN Gaming House
- Why Python?
- Python for Android
- Employment Posters
4 hours 24 min ago - Sure the best distro is
5 hours 45 min ago - BeOS was the best
8 hours 28 min ago - I use Wireshark on a daily
12 hours 59 min ago - buena información
18 hours 5 min ago - One important "bucket" that I didn't note (désolé si qqun deja d
19 hours 6 min ago - Gnome3 is such a POS. No one
1 day 4 hours ago - Gnome 3 is the biggest POS
1 day 4 hours ago - I didn't knew this thing by
1 day 10 hours ago - Author's reply
1 day 14 hours ago





Comments
Add Color to man pages
I am running Mandriva 2008, and there is no XTerm file in /usr/share/X11/app-defaults/
nor is there a ~/.Xdefaults file or dir.
:-(