johanengstrand / TTT

TTT, Short for Text Tv Terminal, is a program that runs in your terminal and displays information from well known usage of TextTv on televisions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tests Formatted .c and .h files

TTT

TTT, Terminal Text TV, is a terminal version of the Swedish teletext system ("Text-TV") written in C, relying on the Text TV API.

Dependencies

Internal libraries

  • jsmn (included in the source)

Installation

Install libcurl and ncurses if you do not already have them installed. These should be available in the repositories of your distribution - if not, refer to the links above.

Official packages

Not yet available.

Building from source

$ git clone https://github.com/McFrappe/TTT.git
$ cd TTT
$ sudo make install

The default installation path prefix is /usr/local, i.e. the program is installed to /usr/local/bin. This can be changed by specifying another prefix:

$ sudo PREFIX="<your/prefix>" make install

Usage

The program is launched with ttt (provided that the binary is included in your $PATH).

Keybindings

All keybindings are listed in the help page of the program. This page can be opened and closed using ?.

Arguments

  • -h - display help message
  • -r - restore terminal colors on quit (using the reset syscall)
  • -d - do not overwrite terminal colors (uses your terminal colors instead)
  • -t - use transparent background for pages (instead of black)

Development usage

$ make run        # run the program
$ make memrun     # run the program with valgrind

$ make test       # run tests
$ make memtest    # run tests with valgrind

$ make clean      # removes all compiled files

About

TTT, Short for Text Tv Terminal, is a program that runs in your terminal and displays information from well known usage of TextTv on televisions.

License:MIT License


Languages

Language:C 88.7%Language:HTML 9.7%Language:Makefile 1.3%Language:C++ 0.3%