Home

Awesome

terminalperiodictable

A beautiful TUI periodic table for GNU/linux terminals coded in C - no extra dependencies

TO COMPILE and RUN:

* GNU/LINUX:
- Download or clone repository.
- Type "make" to compile and "./tptable" to run-
- Alternatively, type "bash build.sh" and ./tptable" to run.

TO INSTALL:

* Installation:
- sudo make install
- Run as "tptable"

Alt text

The periodic table, also known as the periodic table of the elements, is a rows and columns arrangement of the chemical elements. It is widely used in chemistry, physics, and other sciences, and is generally seen as an icon of chemistry. (WIKIPEDIA)

In my last project in C I wanted to compile everything I've learned with text user interfaces and create a retro-looking periodic table that looks nice :)

The explanation of all the modules below:

(Increasing in order of abstraction until you reach main.c)


LEVEL 0: (BASE)


LEVEL 1: (LOW LEVEL ABSTRACTIONS)


LEVEL 2: (HIGH LEVEL ABSTRACTIONS)


main.c: Main program elements.dat: Database of elements, most of the info generated with chatGPT.

(1) http://oldstuff286.blogspot.com/2017/09/a-very-simple-screen-double-buffer.html

(2) http://oldstuff286.blogspot.com/2018/07/segmentation-fault-c-pointers.html