terminal colours by nn

for(;l=readline(p=' ',s='');print(s+'\x1b[49m'))for each(c in l)s+=p!=c?'\x1b[4'+'xrg#b#cw# '.indexOf(p=c)+'m  ':'  '

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page