diff options
author | ed <ed@FreeBSD.org> | 2009-01-17 23:01:40 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-01-17 23:01:40 +0000 |
commit | 57e1b2ae2fb151d3492499e3d96ad296905b0284 (patch) | |
tree | b69876a2d2935b3ccf03558cc6aa364688b3b2d6 /tools/sched/schedgraph.py | |
parent | 7bd93f5fdba0b7c3e3ccdf0397b393a6c18ffbdd (diff) | |
download | FreeBSD-src-57e1b2ae2fb151d3492499e3d96ad296905b0284.zip FreeBSD-src-57e1b2ae2fb151d3492499e3d96ad296905b0284.tar.gz |
Fix for my previous commit: color mapping is not 1:1.
Cons25 doesn't seem to use a straight 1:1 mapping to the ANSI colors,
but uses the same color numbers as at least used by syscons on i386. I
suspect if you change the definitions on a different architecture,
things may break? Not sure.
Add a small array to convert syscons-style color codes to ANSI
equivalents, which are used by libteken internally. I didn't notice this
bug, because I only tested my code with black, white and green, all of
them shared the same numbers.
Diffstat (limited to 'tools/sched/schedgraph.py')
0 files changed, 0 insertions, 0 deletions