Skip to content

wadiim/histogram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Histogram

A histogram generator.

Building

cmake . -Bbuild
cmake --build build

Usage

histogram [options]

histogram reads integers from stdin until EOF and prints a histogram with the bar sizes corresponding to the input data.

Options

Option Meaning
--char <char> Specify the ASCII character used for printing the histogram. This option has no effect when the --pretty option is given.
--help Show help message and exit.
--layout <layout> Specify the layout of the bars in the histogram. <layout> can be horizontal or vertical.
--pretty Pretty-print the histogram using Unicode Box Drawing Characters. This option requires a terminal with UTF-8 encoding to work properly.

License

MIT