about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2013-06-25 16:38:32 -0700
committerCorey Richardson <corey@octayn.net>2013-06-26 18:07:17 -0400
commit0ae203a779b8a75b3b79b409d92558d4bda92133 (patch)
treef496a99e24c3058116ef53f2f632360850785ac2 /src/rt/rust_kernel.cpp
parent00b4138857055ba3495a70a01eea0bc8d9fed690 (diff)
downloadrust-0ae203a779b8a75b3b79b409d92558d4bda92133.tar.gz
rust-0ae203a779b8a75b3b79b409d92558d4bda92133.zip
Refactor extra::term a bit
Move all the colors into a nested mod named color instead of prefixing
with "color_".

Define a new type color::Color, and make this a u16 instead of a u8 (to
allow for easy comparisons against num_colors, which is a u16).

Remove color_supported and replace it with num_colors.

Teach fg() and bg() to "dim" bright colors down to the normal intensity
if num_colors isn't high enough.

Remove unnecessary copies, and fix a bug where a terminfo parse failure
would try to use the wrong error and end up failing.
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions