Live data from Hacker News

Ftxui: C++ Functional Terminal User Interface

github.com

21–30 of 72 posts

Re: Ftxui: C++ Functional Terminal User Interface

#22
post #14
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.

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 oriented simple layout primitives.

Re: Ftxui: C++ Functional Terminal User Interface

#23

Earlier quoted context omitted.

That is basically what Flutter is. Renders to desktop, mobile and web, only tui is missing there.

I thought flutter web uses wasm/canvas and not html am I wrong ?

No you are right, but that’s irrelevant to my point. The point being that Flutter is an example of a “react-like” framework to write UI that renders to multiple backends.

Re: Ftxui: C++ Functional Terminal User Interface

#24
post #14
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.

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

Htop is great. Lately I've been reaching for a way to get an overview of process clusters (like firefox or vscodium like to make), and I can see there's an open feature request in htop for that. Would be a nice thing.

Re: Ftxui: C++ Functional Terminal User Interface

#25

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/

Re: Ftxui: C++ Functional Terminal User Interface

#26

Earlier quoted context omitted.

I thought flutter web uses wasm/canvas and not html am I wrong ?

No you are right, but that’s irrelevant to my point. The point being that Flutter is an example of a “react-like” framework to write UI that renders to multiple backends.

not really, it's important to me that we don't flatten things into a canvas rendering system, the idea is to remap abstract UI structures onto various projections (terminal, html, else)

Re: Ftxui: C++ Functional Terminal User Interface

#27
post #14
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.

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

top is ok, but I'm always confused about the key-combinations, and the view is cropped (command line arguments etc.), so a scrollbar or some on-hover popup seems needed here.

Re: Ftxui: C++ Functional Terminal User Interface

#28
post #10

Earlier quoted context omitted.

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.

What scenario are you talking about, or what does VS Code have to do with anything? Did you mean running VS Code on a remote server and forwarding it to the local machine? X11 based forwarding?

You probably just want to use the Remote SSH extension in VS Code. That should work a lot better than X11 forwarding, and it should be a lot easier than rewriting the whole GUI to use the terminal.
Post reply on HN