diff options
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | term/colors.lua | 2 |
2 files changed, 1 insertions, 2 deletions
@@ -3,6 +3,7 @@ | |||
3 | - Add clear functions. | 3 | - Add clear functions. |
4 | - Deprecate term.isatty. Use luaposix instead. | 4 | - Deprecate term.isatty. Use luaposix instead. |
5 | - Add colors.default as a synonym for colors.reset. | 5 | - Add colors.default as a synonym for colors.reset. |
6 | - The metatable for colors is no longer hidden. | ||
6 | 7 | ||
7 | 0.01 2012-06-25 23:30:00 | 8 | 0.01 2012-06-25 23:30:00 |
8 | - Initial release. Includes colors and isatty. | 9 | - Initial release. Includes colors and isatty. |
diff --git a/term/colors.lua b/term/colors.lua index 63d752b..76f8b2e 100644 --- a/term/colors.lua +++ b/term/colors.lua | |||
@@ -39,8 +39,6 @@ function colormt:__call(s) | |||
39 | return self .. s .. colors.reset | 39 | return self .. s .. colors.reset |
40 | end | 40 | end |
41 | 41 | ||
42 | colormt.__metatable = {} | ||
43 | |||
44 | local function makecolor(value) | 42 | local function makecolor(value) |
45 | return setmetatable({ value = schar(27) .. '[' .. tostring(value) .. 'm' }, colormt) | 43 | return setmetatable({ value = schar(27) .. '[' .. tostring(value) .. 'm' }, colormt) |
46 | end | 44 | end |