Skip to content

Terminal user inferface toolkit

License

Notifications You must be signed in to change notification settings

tuiwidgets/tuiwidgets

Repository files navigation

Tui Widgets

High level terminal user interface library for modern terminals.

Documentation

The full documentation for Tui Widgets can be found here.

Building / Installing

See https://tuiwidgets.namepad.de/latest/building-tuiwidgets.html

Example

See Getting started or full header and full implementation.

Tui::ZWindow *win = new Tui::ZWindow("Hello World", this);
win->setGeometry({5, 3, 20, 10});
QObject::connect(new Tui::ZShortcut(Tui::ZKeySequence::forKey(Qt::Key_Escape),
                                    this,
                                    Qt::ApplicationShortcut),
                 &Tui::ZShortcut::activated,
                 this, &Main::quit);
Tui::ZButton *button = new Tui::ZButton(Tui::withMarkup, "<m>Q</m>uit", win);
QObject::connect(button, &Tui::ZButton::clicked, this, &Main::quit);
button->setGeometry({6, 7, 10, 1});
button->setFocus();

License

Tui Widgets is licensed under the Boost Software License 1.0