mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
Ansicolors was a LUA5.1 module. Move it to LUA5.2+ module style.
This commit is contained in:
@@ -3,8 +3,6 @@ local tostring = tostring
|
||||
local setmetatable = setmetatable
|
||||
local schar = string.char
|
||||
|
||||
module 'ansicolors'
|
||||
|
||||
local colormt = {}
|
||||
|
||||
function colormt:__tostring()
|
||||
@@ -57,7 +55,10 @@ local colors = {
|
||||
onwhite = 47,
|
||||
}
|
||||
|
||||
local Ansicolors = {}
|
||||
for c, v in pairs(colors) do
|
||||
_M[c] = makecolor(v)
|
||||
Ansicolors[c] = makecolor(v)
|
||||
end
|
||||
|
||||
return Ansicolors
|
||||
|
||||
|
||||
Reference in New Issue
Block a user