Box Coloring by test

gets p
1.upto(9){|n|
gsub(/^(.{#{(~/#\S*\s/)%51}})(#$&)/s){$1+$2.tr('^ ',n.to_s)}}
print

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

download

return top