From 74da48b05dcfb3841bbf8c13e2f8cc51defd05b7 Mon Sep 17 00:00:00 2001 From: Rob Hoelz Date: Thu, 21 Feb 2013 21:13:03 +0100 Subject: Don't hide the metatable for colors --- CHANGES | 1 + term/colors.lua | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 87e23ce..388c06e 100644 --- a/CHANGES +++ b/CHANGES @@ -3,6 +3,7 @@ - Add clear functions. - Deprecate term.isatty. Use luaposix instead. - Add colors.default as a synonym for colors.reset. + - The metatable for colors is no longer hidden. 0.01 2012-06-25 23:30:00 - 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) return self .. s .. colors.reset end -colormt.__metatable = {} - local function makecolor(value) return setmetatable({ value = schar(27) .. '[' .. tostring(value) .. 'm' }, colormt) end -- cgit v1.2.3-55-g6feb