colorizing

This commit is contained in:
2025-02-16 20:56:02 +01:00
parent 6ac0ea9b35
commit 72bffca489
3 changed files with 22 additions and 21 deletions

View File

@ -3,5 +3,7 @@ function filter (line)
end
function format (line)
line = line:gsub("(IMAGE)", color("%1", "31;1;4"))
line = line:gsub("(gentoo)", color("%1", "32"))
return line:match("\"([^\"]+)\"")
end