diff options
| author | Rob Hoelz <rob@hoelz.ro> | 2013-02-21 21:13:03 +0100 |
|---|---|---|
| committer | Rob Hoelz <rob@hoelz.ro> | 2013-02-21 21:13:03 +0100 |
| commit | 74da48b05dcfb3841bbf8c13e2f8cc51defd05b7 (patch) | |
| tree | 4bc4fe14d6279d6e50b1b2780d59f679936df503 /term | |
| parent | 91cb6f46bffd8121dfb27038ad871122fc76df3b (diff) | |
| download | lua-term-74da48b05dcfb3841bbf8c13e2f8cc51defd05b7.tar.gz lua-term-74da48b05dcfb3841bbf8c13e2f8cc51defd05b7.tar.bz2 lua-term-74da48b05dcfb3841bbf8c13e2f8cc51defd05b7.zip | |
Don't hide the metatable for colors
Diffstat (limited to 'term')
| -rw-r--r-- | term/colors.lua | 2 |
1 files changed, 0 insertions, 2 deletions
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 |
