8 lines created instead of 7 to not erase the PS1 line during the refresh
The Windows console does not grok ANSI escape sequences, instead we need to use the console API.
In case of commands with stdout redirection, Gti used to write the animation into the redirected stdout. This means that the user does not get to see the nice little animation. Clearly, this isn't what we want. Rewrite the code to open /dev/tty instead, and write to that. For systems lacking /dev/tty, we gracefully fall back to stdout.
Fixing Makefile to allow installation to nonexistent paths.
Due to a bug in my previous commit (ee56e68), the Makefile could only be used to install the program and manpage to directories that already exist. This makes it impossible to use for building into a sandbox environment, or anywhere that doesn't already have /usr/bin and /usr/share/man/man6. In particular, this poses problems for packaging.
Makefile enhancements and a new manual page
Even small utilities benefit from documentation! In addition to the manpage itself, a target is added to the makefile to allow for generating and installing a compressed version.
Primarily, this allows for custom build flags for the compiler and linker to be passed in externally. There's also a bit of cleanup to make it simpler to add more targets later on, like in the upcoming manual page patch.
Adding support for DESTDIR to Makefile, and a new 'uninstall' target.
As per the GNU Makefile Conventions, DESTDIR is a value that can be prepended to the installation target paths in order to support custom installation paths, as well as staged installs (where files are placed in an intermediate path first). It is also used in the Debian packaging proces (cf. https://www.gnu.org/prep/standards/html_node/DESTDIR.html) The 'uninstall' target can be used to remove the program, should the user wish to do so.
Move the cursor to the top once the car is gone
This closes #7. Thanks to Pedro Barbosa.
Animation duration is agnostic of term width
My git isn't in the path because I am using Xcode 4.4 without the CLT tools installed. So I set $GIT. Most tools respect this.
Removed unnecessary printf argument.
resolving issue #1 (enabling build on Mac OS X)