File: README.md

package info (click to toggle)
tuiwidgets 0.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 14,940 kB
  • sloc: cpp: 54,583; python: 495; sh: 83; makefile: 8
file content (46 lines) | stat: -rw-r--r-- 1,437 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<h1 align="center">
    Tui Widgets
</h1>


<h3 align="center">
  <a href="https://tuiwidgets.namepad.de/latest/">Documentation</a>
  <span> · </span>
  <a href="https://tuiwidgets.namepad.de/latest/getting-started.html">Getting Started</a>
  <span> · </span>
</h3>

High level terminal user interface library for modern terminals.


## Documentation

The full documentation for Tui Widgets can be found [here](https://tuiwidgets.namepad.de/latest/).

## Building / Installing

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

## Example

See [Getting started](https://tuiwidgets.namepad.de/latest/getting-started.html)
or [full header](doc/examples/getting-started/getting-started.h)
and [full implementation](doc/examples/getting-started/getting-started.cpp).

```
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](COPYING)