# Owner: glow # KeyID: E65A8520F36AEE13CFE4F56BEB8FE331063A4794 # Key: https://glow.li/pgp # Verify: curl "https://glow.li/posts/compiling-tty-clock-on-termux/index.html.asc" | gpg -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 - --- date=2016-01-16 layout=post title="Compile tty-clock on Termux" tags[]=Technology tags[]=Termux tags[]=Android tags[]=Compiling tags[]=Tutorial oldurls[]=technology/2016/1/16/compiling-tty-clock-on-termux/ - --- **This post is now obsolete. You can install `tty-clock` from the repository.** ![Screenshot](/media/images/small/Screenshot-tty-clock.webp){.right} [Tty-clock](https://github.com/xorg62/tty-clock) is a small program that displays a digital clock. To compile it on [Termux](https://termux.com/) you'll need to download the sources from GitHub. ``` git clone https://github.com/xorg62/tty-clock.git ``` You'll also need the `ncurses-dev` package. ``` apt install ncurses-dev ``` Sadly, compiling with `make` doesn't really work with this one, I managed to compile it with the following command. ``` gcc -Wall -Werror -Wextra -std=c99 -pedantic -Wno-unused-parameter -lncurses -o tty-clock ttyclock.c ``` You can then install it with `make install`. -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE5lqFIPNq7hPP5PVr64/jMQY6R5QFAmHoUHsACgkQ64/jMQY6 R5RoWQ//dQWx5ufFjgS9VMfI4X2/CiM9vpoSRHUcWWqYTIHfgGzVee5wqRjvjBTy PXkugoX9FqgAwhAiFDdlods+fyWYYGW4VQiy1bHHdrjHPMKeFX1tBAeQZJpJjfrc MQd6dVjlisBSCl7SlhnHau4vhAq4jZxPc/504w8rvRwuG5NESxwgCXAS1U01kqgq CRrsRFeGp8G6FbfniuAOeEDj2TUdVLrkruRDW5V8gMOOfC4RPuekiNdba3WEyDFG dJqIN6LWPAJ5KapaY6HtbSlLtBAlrXh3/7L8Gmub94WkAX1SsytRohk2hvIE2BPD VQvbD2tIFSIj1DJ5zbB8w/+DKZUciuLHE7pCi61GyqZAnUhbk90sS183q2+Gk3xt L95V6e38N1eejJ+3fxDIk8xE7XjUt6THguZaG+P2b+vhO/y2BZ1n37maOZOZegqu FFAuBY5WSwFhs0crCj0skiyNoVSt31jA2Wy551iiCQNJVNeWYHXmEHtTh11iCgUj KB6Q7aAqq00iYbWYULgsnTOZg34jFhlqKeP+IHbJXPZ7f1LCyjhIg7XrpLpsvVLz vH7u0WWp/h9P2kyvqoX1Hsu3iFtXwANMgGozKwS/So5aNp6rcrCuM+jwJtmLKTLx FoK0jX+nMHfIf8yhrQgv6PmchQTQ5K7deoLzedWWYNNwNdEZuYM= =7uSF -----END PGP SIGNATURE-----