riscy / shx-for-emacs

An Emacs shell-mode (and comint-mode) extension that enables displaying small plots and graphics and lets users write shell commands in Emacs Lisp.
GNU General Public License v3.0
218 stars 10 forks source link

Add :asciibar shx command #10

Closed riscy closed 5 years ago

riscy commented 5 years ago

Add an asciibar shx command that works like plotbar (q.v. the function shx-cmd-plotbar), but instead of embedding an image, it draws simple horizontal barplots to the console.

The output should be something like the following:

$ cat >| bar.dat
"Item 1": 3
"Item Two": 4
^D
$ :asciibar bar.dat
Item 1   ############
Item Two ################