terminal colours by recursive

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

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

download

return to the top page