Mercurial > prosody-hg
diff util/termcolours.lua @ 11200:bf8f2da84007
Merge 0.11->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 05 Nov 2020 22:31:25 +0100 |
| parents | 317bcc4f25f5 |
| children | d10957394a3c |
line wrap: on
line diff
--- a/util/termcolours.lua Thu Nov 05 22:27:17 2020 +0100 +++ b/util/termcolours.lua Thu Nov 05 22:31:25 2020 +0100 @@ -83,7 +83,7 @@ setmetatable(stylemap, { __index = function(_, style) if type(style) == "string" and style:find("%x%x%x%x%x%x") == 1 then local g = style:sub(7) == " background" and "48;5;" or "38;5;"; - return g .. color(hex2rgb(style)); + return format("%s%d", g, color(hex2rgb(style))); end end } );
