box paint by kotauchi

t=""\x0d
o=p=0\x0d
for i in map(ord,open('/dev/fd/0').read()):\x0d
 if~i&(~o&p&(o!=46)|(p==46)):i=46\x0d
 t+=chr(i)\x0d
 o,p=p,i\x0d
print t

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

download

return top