<commit_before>![travis-ci](https://travis-ci.org/dpayne/cli-visualizer.svg?branch=master)

# cli-visualizer

Command line visualizer. Currently only supports mpd.

This project was heavily inspired by [C.A.V.A](https://github.com/karlstav/cava), [ncmpcpp](http://rybczak.net/ncmpcpp/), and [rainbow](https://github.com/sickill/rainbow)

![spectrum_stereo](/examples/spectrum_stereo.gif?raw=true "Spectrum Stereo")

![spectrum_mono](/examples/spectrum_mono.gif?raw=true "Spectrum Mono")

![ellipse](/examples/ellipse.gif?raw=true "Ellipse")

![lorenz](/examples/lorenz.gif?raw=true "Lorenz")

**Table of Contents**

- [Installing Pre-requisites](#installing-pre-requisites)
 - [Ubuntu](#ubuntu)
 - [Arch Linux](#arch-linux)
 - [Mac OS X](#mac-os-x)
- [Installing](#installing)
- [MPD Setup](#mpd-setup)
- [Usage](#usage)
	- [Controls](#controls)
- [Configuration](#configuration)



## Installing Pre-requisites

`fftw` and `ncursesw` libraries are required to build. Note that ncurses with wide character support is needed.

A C++ compiler that supports C++14 is also needed. On arch linux, the latest g++ or clang++ will work.

### 256 Colors

In order to show the colors, you need a terminal with 256 color support. `rxvt-unicode` should work well for this case. Other terminals might work, however, I have only tested with rxvt.
<commit_msg>Adding explanation for supporting 256 color for xterm to README<commit_after>![travis-ci](https://travis-ci.org/dpayne/cli-visualizer.svg?branch=master)

# cli-visualizer

Command line visualizer. Currently only supports mpd.

This project was heavily inspired by [C.A.V.A](https://github.com/karlstav/cava), [ncmpcpp](http://rybczak.net/ncmpcpp/), and [rainbow](https://github.com/sickill/rainbow)

![spectrum_stereo](/examples/spectrum_stereo.gif?raw=true "Spectrum Stereo")

![spectrum_mono](/examples/spectrum_mono.gif?raw=true "Spectrum Mono")

![ellipse](/examples/ellipse.gif?raw=true "Ellipse")

![lorenz](/examples/lorenz.gif?raw=true "Lorenz")

**Table of Contents**

- [Installing Pre-requisites](#installing-pre-requisites)
 - [Ubuntu](#ubuntu)
 - [Arch Linux](#arch-linux)
 - [Mac OS X](#mac-os-x)
- [Installing](#installing)
- [MPD Setup](#mpd-setup)
- [Usage](#usage)
	- [Controls](#controls)
- [Configuration](#configuration)



## Installing Pre-requisites

`fftw` and `ncursesw` libraries are required to build. Note that ncurses with wide character support is needed.

A C++ compiler that supports C++14 is also needed. On arch linux, the latest g++ or clang++ will work.

### 256 Colors

In order to show the colors, you need a terminal with 256 color support.`rxvt-unicode` out of the box.

For xterm, the default `$TERM` setting needs to be changed to `xterm-256color`. To change this run

    export TERM=xterm-256color

{'fraction_non_alphanumeric': 0.14885222381635582, 'fraction_numerical': 0.008967001434720229, 'mean_word_length': 5.116228070175438, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2385083', 'n_tokens_mistral': 1041, 'n_tokens_neox': 939, 'n_words': 249}