Live data from Hacker News

Ftxui: C++ Functional Terminal User Interface

github.com

31–40 of 72 posts

Re: Ftxui: C++ Functional Terminal User Interface

#31

Great project. One of its user git-tui looks well comparing to another git-cli (tig). Wish we have some nice cross-platform GUI with modern c++ works across linux/windows/macos too, the only choice used to be Qt. Nowadays imgui seems a good alternative.

Juce is pretty nice. https://juce.com/

That's geared towards music related GUI apps?

Re: Ftxui: C++ Functional Terminal User Interface

#33

Great project. One of its user git-tui looks well comparing to another git-cli (tig). Wish we have some nice cross-platform GUI with modern c++ works across linux/windows/macos too, the only choice used to be Qt. Nowadays imgui seems a good alternative.

gtkmm works across all those 3 platforms, and had modern C++ before Qt did (e.g. actually using templates and libstdc++ instead of preprocessors and custom "standard" classes).

Re: Ftxui: C++ Functional Terminal User Interface

#34
post #10
post #4

It looks incredibly nice, but ... I still think a text UI that looks like a GUI is combining the worst of two worlds.

Except if you need to run the app on remote server. VS Code shows how utterly difficult it is to get a GUI working well in that scenario.

RDP, XWindows and VNC have worked for quite a few decades now.

My first experience with remote XWindows was using IBM X Windows terminals in 1994.

Re: Ftxui: C++ Functional Terminal User Interface

#35
post #16

C++ ensures this will never be used widely.

And yet C++ is one of the most popular languages in the world and widely used in the industry including most (all?) tech giants.

To reinforce that, even those giants that are slowly adopting Rust, do have employees seated at ISO C++ table and are major contributors to its compilers and IDEs.

Re: Ftxui: C++ Functional Terminal User Interface

#37
post #4

It looks incredibly nice, but ... I still think a text UI that looks like a GUI is combining the worst of two worlds.

Well, I don't think it can be viewed as a text UI since you interact with components and don't type commands. I would say it is a keyboard based GUI.

Re: Ftxui: C++ Functional Terminal User Interface

#38

Earlier quoted context omitted.

Juce is pretty nice. https://juce.com/

That's geared towards music related GUI apps?

It is, but it contains enough general purpose stuff to be useful for non-audio stuff as well. I use JUCE at my day job FWIW.

Re: Ftxui: C++ Functional Terminal User Interface

#39
post #14

Earlier quoted context omitted.

Have you ever used (h)top? It's great at-a-glance view of what's going on, from the command line.

Htop is an example of a good TUI but it doesn’t really look like a traditional “drawn” GUI. I think that is the distinction that parent is making. In a TUI environment (ignoring mouse support) traditional GUI elements and layouts often don’t make sense. Like one of the examples with all the radio buttons in small boxes. The good TUI apps like htop, newsboat, mutt, vim/emacs, tmux all have mostly line-and-column orien…

You can use the TAB key and spacebar to navigate TUI widgets, there's no need for mouse support. TUI layouts can definitely be overdone, but they're also useful in many cases.

Re: Ftxui: C++ Functional Terminal User Interface

#40
post #14

Earlier quoted context omitted.

Have you ever used (h)top? It's great at-a-glance view of what's going on, from the command line.

Htop is an example of a good TUI but it doesn’t really look like a traditional “drawn” GUI. I think that is the distinction that parent is making. In a TUI environment (ignoring mouse support) traditional GUI elements and layouts often don’t make sense. Like one of the examples with all the radio buttons in small boxes. The good TUI apps like htop, newsboat, mutt, vim/emacs, tmux all have mostly line-and-column orien…

What's wrong with radio buttons in a TUI? The "good" htop uses checkboxes which is almost the same and works just fine.
Post reply on HN