File: links-configure-colour.html, Node: Colour, Next: File Extensions and Associations, Prev: Character Sets, Up: Configuring Links
This version of Links has support for 16 named colours (see table below), while any other colours (given by hex values, e.g. #FF00FF) are rendered according to a "nearest colour" algorithm (see the source code module "html_r.c" if you are interested).
Enabling colour support in Links using the menu system is simple. Just press <ESC>, then select Setup --> Terminal options. Click on the Color checkbox or toggle it with your keyboard's spacebar. Press <Enter> or click [OK] and that's it. But don't forget to "Save options" before exiting Links (<ESC>-s-s).
To find out how to enable / disable the colour display in the Links.cfg file, see the section "Terminal options" [2.5.5].
Just so you know the limit to the colours that Links can display, here's a table with the named colours and their hex value equivalents. You should, of course, be viewing this in Links ;-).
|black (#000000)||red (#ff0000)||blue (#0000ff)||yellow (#ffff00)
|gray (#808080)||silver (#c0c0c0)||white (#ffffff)||maroon (#800000)
|purple (#800080)||fuchsia (#ff00ff)||green (#008000)||lime (#00ff00)
|olive (#808000)||navy (#000080)||teal (#008080)||aqua (#00ffff)
|User Reference Manual for Links Version 0.82||
Revision Date: 2000-02-16
Copyright (C) 2000 Cliff Cunnington, <firstname.lastname@example.org>
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.