mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 13:00:42 -07:00
Ansicolors was a LUA5.1 module. Move it to LUA5.2+ module style.
This commit is contained in:
parent
18e3600d95
commit
fa949538ce
1 changed files with 4 additions and 3 deletions
|
@ -3,8 +3,6 @@ local tostring = tostring
|
||||||
local setmetatable = setmetatable
|
local setmetatable = setmetatable
|
||||||
local schar = string.char
|
local schar = string.char
|
||||||
|
|
||||||
module 'ansicolors'
|
|
||||||
|
|
||||||
local colormt = {}
|
local colormt = {}
|
||||||
|
|
||||||
function colormt:__tostring()
|
function colormt:__tostring()
|
||||||
|
@ -57,7 +55,10 @@ local colors = {
|
||||||
onwhite = 47,
|
onwhite = 47,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local Ansicolors = {}
|
||||||
for c, v in pairs(colors) do
|
for c, v in pairs(colors) do
|
||||||
_M[c] = makecolor(v)
|
Ansicolors[c] = makecolor(v)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Ansicolors
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue