A lightweight, cross-platform terminal UI (TUI) library written entirely in C. While many TUI libraries exist, few are built from the ground up in pure C (and cross-platform) — FancyTerminal fills that gap with simplicity and full control.
-
First initialize a fancy terminal container
FancyTerminal *ft=initFancyTerminal();
-
Configure the layout (see User Guide for more details)
setFTLayoutPattern( ft, 2,5, "1 1 0 2 2," "1 1 0 2 2," );
-
Create UI elements and add them
FTElement *button=createFTButton("Button"); addToFancyTerminal(ft,button); FTElement *textField=createFTTextField("Text Hint",""); addToFancyTerminal(ft,text_field);
-
Register event handlers (optional)
ft_connect(move_btn, FT_EVENT_CLICK, myFunction, NULL);
-
Finally, Start the TUI loop
enterFancyTerminal(ft);
Building the Demo
git clone https://github.com/alfaiajanon/FancyTerminal.git
cd FancyTerminal
cd build
cmake .
makerogueutil is used to bring cross platform support
