2 local tostring = tostring
3 local setmetatable = setmetatable
4 local schar = string.char
10 function colormt:__tostring()
14 function colormt:__concat(other)
15 return tostring(self) .. tostring(other)
18 function colormt:__call(s)
19 return self .. s .. _M.reset
22 colormt.__metatable = {}
24 local function makecolor(value)
25 return setmetatable({ value = schar(27) .. '[' .. tostring(value) .. 'm' }, colormt)
60 for c, v in pairs(colors) do