ArthurSonzogni / FTXUI

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

[feature request] IP Input component #672

Closed mohsenomidi closed 1 year ago

mohsenomidi commented 1 year ago

@ArthurSonzogni Thanks for your amazing library

I am wondering to know, is there any plan to add ip address input component separated by .

Thanks 🙏

ArthurSonzogni commented 1 year ago

Hi @mohsenomidi

This is quite specific, and there are many exotic ways to write an IP address. Not sure if this is something easy to do perfectly.

Ideally, I would like to reference some "component" libraries for FTXUI. An IP input one would be great: https://github.com/ArthurSonzogni/FTXUI#libraries-for-ftxui

If you have a good idea how it should behave maybe you could share an implementation?

mohsenomidi commented 1 year ago

Thanks for your reply, I will thinking about it, and will share if I find the way

One more thing, it seems, the link you provided is not referenced to the mentioned component

ArthurSonzogni commented 1 year ago

The correct link is: https://github.com/ArthurSonzogni/FTXUI#libraries-for-ftxui

mingsheng13 commented 1 year ago

@ArthurSonzogni Hi, if I were to implement one, what's the way that you prefer? Should I add an InputOption such as InputOption::IP? Or a new cpp file: IpInput.cpp? Thanks.

mohsenomidi commented 1 year ago

Completed 👍