Transform region into ASCII art
23 Mar 2015Here's a command that I've found laying around my config that you might find interesting:
(defun ora-figlet-region (&optional b e)
(interactive "r")
(shell-command-on-region b e "toilet" (current-buffer) t))
You can install the toilet
shell utility from your package manager.
Here's an example result:
#" m" mmm m mm mmm mmmmm mmm mmm mmm # #" "# #" " #" # # # # " # #" " # " # # # # #"""" # # # m"""# # """m # "#m#" # "#mm" # # # "mm"# "#mm" "mmm" "
If you don't mind the strange name, the output looks quite nice.