- compiler (i use g++)
- ncursesw library
- just (make alternative)
- Git (just for git clone)
- Linux host
- terminal with unicode support
- cowsay
git clone https://github.com/ProggerX/PPM
cd PPM
just first_installjust updateppmif ~/.local/bin in your path, in other situation move binary from ~/.local/bin/ppm to your path directory
- q - exit
- Tab - select next widget
- Events only captured by selected widget
- h j k l (like vim) - move selected widget
- [ - widget width - 1
- ] - widget width + 1
- , - widget height - 1
- . - widget height + 1
- Ur class should be in
include/custom_widgets/and named like SomeWidget.hpp - Ur class should inherit
Widgetclass - Ur class should have
void print_text(WINDOW* scr)method andget_events(char ch)
Widget(int x, int y, int height, int width)--include/widget.hpp-- an abstract widget classCommandWidget(int x, int y, int height, int width, std::string cmd) : public Widget--include/CommandWidget.hpp-- a class with additionalcmdfield that runs NOT ENDLESS command every update and shows output in widgetClock(int x, int y, int height, int width, std::string time_command, bool show_seconds)--include/default_widgets/Clock.hpp-- a digital