File: links-configure-colour.html, Node: Colour, Next: File Extensions and Associations, Prev: Character Sets, Up: Configuring Links

# 2.3 Colour

# [Version 0.82]

### Page Contents

- 2.3.1 Colour
- 2.3.2 Colour Table

### 2.3.1 Colour

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].

### 2.3.2 Colour Table

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, <cliff@ccnet.demon.nl>

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.