# 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", "oldurls": ["technology/2016/1/16/compiling-tty-clock-on-termux/"], "tags": ["Technology", "Termux", "Android", "Compiling", "Tutorial"], "title": "Compile tty-clock on Termux" } +++ **This post is now obsolete. You can install `tty-clock` from the repository.** ![Screenshot](media/images/Screenshot-tty-clock){.right .size-half} [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/jMQY6R5QFAmRuqE8ACgkQ64/jMQY6 R5SgdQ//T+8RIiwou8RkpsNh5dOFvhIVFIK4YISyCQsMfI+EUqav627LbfMw3ABm m2/qp5E5gMDieXzMwci6IcWe5BXiSmCOr5l9quR4Gp458iQzr/LcAGGsiD0Jd40f F23+wf3BDa5Z5YaWakqpC8km2jRe60k1/9nG+W4hL7QOXUpUNDNwMCw9vo55nY5p bP59oVvwYMtRHd8L2vLr663pD+EFrxFOE7i1jdN1PFXpTnTp3uiGgWICs3UUlDVj KTxlQcFj+n0t3R6H5FXw9lMKFotRhpiFdROyoy53dllhEt+zDzrYcTOk4vcqeYUn o5jxFZu9QuyceQCaggoABmxNp4E2YZQ/6+2pQtt1cAaynELKsZp4Hc8s3m1R9ImE kig0xOuLgcA/GoLzcbh2jQh4ssjSvNK34auhxwnzfhPYCLAHKH7MmsWtWD/5Oz/M fiagMoVObGAydpKmP/68aMI2aQYH02FAj4Of96WEafmwdZBtGvz7NlEErKmY3XS0 hKC9dpgAl//JuUsG4cJijPetcroxwZ6LAwoTtbfhueEcWsnISke7wgnWWE+O7uyP FCT1rc+4ygTBRpq13ihgl0eeaJDgULtLOhAtMiIseVOjAfGNNk6Bh3+jEcR/PUrn f6lqZHGX81WQiq58aJuJqrWxNXrE4Fu+7NWYUdOkUjBER0KYPJk= =DHmu -----END PGP SIGNATURE-----