fix(ansikit)!: return hyperlink ascii code instead of printing it

pull/78/head
sammyette 2021-10-17 19:19:43 -04:00
parent 72194898ba
commit 7a4cbbddff
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ end
ansikit.link = function(url, text)
if not url then error 'ansikit: missing url for hyperlink' end
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
ansikit.print = function(text)