ArthurSonzogni / FTXUI

:computer: C++ Functional Terminal User Interface. :heart:
MIT License
7.02k stars 427 forks source link

Knob Support #914

Open godofecht opened 3 months ago

godofecht commented 3 months ago

Would be nice to have knob and label support.

If I can get that, then I'm happy to build a VST plugin using the same.

ArthurSonzogni commented 3 months ago

Hello, Those are basic features. I think FTXUI provides both: Button, text, Checkbox, ... Could you please read the docs and explain what you considered and why it doesn't work for you?

godofecht commented 3 months ago

There is a Slider but there is no Rotary Slider or Dial. Labels should be able to attach to any component, but there is a class called Slider with Label.

ArthurSonzogni commented 3 months ago

I see!

Would you have some ascii/unicode art how to represent a rotary slider?

godofecht commented 3 months ago
    "          _____          ",
    "        /       \\        ",
    "       |         |       ",
    "       |         |       ",
    "        \\_______/        ",

    With an asterisk or other symbol rotating around the inside.
godofecht commented 3 months ago

image

godofecht commented 3 months ago

I'd like to get involved... Any way I can help?

ArthurSonzogni commented 3 months ago

I think you can try to build one as an example using pre-existing FTXUI API. You can take a look at the API by reading it.

Note that building a "knob support" is not guaranteed the code will enter FTXUI by default. It would only if this is sufficiently useful and looked for by developers. However it can easily be listed under the FTXUI extension section.