mirror of https://github.com/Hilbis/Hilbish
fix(ansikit)!: return hyperlink ascii code instead of printing it
parent
72194898ba
commit
7a4cbbddff
|
@ -80,7 +80,7 @@ end
|
||||||
ansikit.link = function(url, text)
|
ansikit.link = function(url, text)
|
||||||
if not url then error 'ansikit: missing url for hyperlink' end
|
if not url then error 'ansikit: missing url for hyperlink' end
|
||||||
local text = (text and text or 'link')
|
local text = (text and text or 'link')
|
||||||
io.write(lunacolors.blue('\27]8;;' .. url .. '\27\\' .. text .. '\27]8;;\27\\\n'))
|
return lunacolors.blue('\27]8;;' .. url .. '\27\\' .. text .. '\27]8;;\27\\\n')
|
||||||
end
|
end
|
||||||
|
|
||||||
ansikit.print = function(text)
|
ansikit.print = function(text)
|
||||||
|
|
Loading…
Reference in New Issue