terminal colours by twobit

while 1:r=raw_input()+" ";print"  ".join("\x1b[4%dm"%"xrg+b+cw+ ".find(c)*(p!=c)for p,c in zip(" "+r,r))

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

download

return top