]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[console] Add centralised concept of colours and colour pairs
authorMichael Brown <mcb30@ipxe.org>
Sat, 7 Dec 2013 20:53:20 +0000 (20:53 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 9 Dec 2013 15:34:07 +0000 (15:34 +0000)
commit7025f5c648aedf744690e9e04257d6dddc94919d
tree7117fefd350b81c92732f8f600ff2d7959c0e0fc
parent4c51f9602d4d96f38504a1b9e80b67e4a44c62c8
[console] Add centralised concept of colours and colour pairs

Add a centralised concept of colours and colour pairs (using the
default colour pairs as configured via config/colour.h).  A colour
pair consists of a pair of colour indices.

Add the ability to redefine both a colour pair and an individual
colour index, with minimal overhead if this feature is not required
(e.g. because the relevant shell commands are not present in the
build).

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/config/colour.h
src/core/ansicol.c [new file with mode: 0644]
src/core/ansicoldef.c [new file with mode: 0644]
src/include/ipxe/ansicol.h [new file with mode: 0644]
src/include/ipxe/errfile.h