a4 Compile and Install

It is best to compile the code yourself, if possible. If you don't have that capability on your system there are two installation scripts available at https://github.com/rpmohn/a4/releases that easily installs pre-compiled binaries for your machine architecture (uname -m). One script, install.sh, installs a4 for all users on your system and must be run with sudo or as root. The other, install-local.sh, requires no elevated privileges and just installs a4 in your own $HOME/.local/ directories.

$ # Option 1: Compile yourself
$ git clone https://github.com/rpmohn/a4
$ cd a4
$ make && sudo make install
$ # Option 2: Install pre-compiled binary for all users with sudo
$ curl -LO https://github.com/rpmohn/a4/releases/latest/download/install.sh
$ chmod 700 ./install.sh
$ sudo ./install.sh
$ # Option 3: Install pre-compiled binary for yourself
curl -fsSL https://github.com/rpmohn/a4/releases/latest/download/install-local.sh | bash

Notes

Mouse Support

There's a configuration error in the xterm-256color file installed by some Linux distros that causes the mouse to behave incorrectly by printing characters to the terminal. If you experience this problem, run the following command to put a local, patched copy of the file in place for your login account:

$ infocmp xterm-256color | sed -E 's/(kmous=\\E\[)</\1M/' | tic -o ~/.terminfo -