slope lines by recursive

import sys
o=[]
l=0
p=""
for r in[""]*99+list(sys.stdin):p+="  ";o=map("   ".join,zip([p]+o,r.strip()+p))
for r in o[::-1]:
 l=max(l-2,len(r.rstrip()))
 if l:print r[203:l]

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

download

return to the top page