Skip to content

alfaiajanon/FancyTerminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FancyTerminal

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.


Usage

  • 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);

Demo

Demo Image

Building the Demo

git clone https://github.com/alfaiajanon/FancyTerminal.git
cd FancyTerminal
cd build
cmake .
make

External Library

rogueutil is used to bring cross platform support

Documentation

About

A completely C based Terminal UI library.

Topics

Resources

License

Stars

Watchers

Forks

Contributors