Lines Matching full:color
32 local color = {}
35 color.disabled = not color.isEnabled()
39 color.BLACK = 0
40 color.RED = 1
41 color.GREEN = 2
42 color.YELLOW = 3
43 color.BLUE = 4
44 color.MAGENTA = 5
45 color.CYAN = 6
46 color.WHITE = 7
48 color.DEFAULT = 9
49 color.BRIGHT = 1
50 color.DIM = 2
52 function color.isEnabled()
60 function color.escapefg(color_value)
61 if color.disabled then
67 function color.resetfg()
68 if color.disabled then
71 return color.escapefg(color.DEFAULT)
74 function color.escapebg(color_value)
75 if color.disabled then
81 function color.resetbg()
82 if color.disabled then
85 return color.escapebg(color.DEFAULT)
88 function color.escape(fg_color, bg_color, attribute)
89 if color.disabled then
101 function color.default()
102 if color.disabled then
105 return color.escape(color.DEFAULT, color.DEFAULT)
108 function color.highlight(str)
109 if color.disabled then
112 -- We need to reset attributes as well as color scheme here, just in
120 return color