Ncurses Programming

How can you possibly do it correctly?
I see things like menus (which are fine but what if I need multiline items). What about scrolling (not just down but also up)
What if I need to scroll not by lines, but by "items" like windows, or scroll horizontally
Also, ranger somehow uses images, how can images be seamlessly used. Can other types of things be items, like videos, and music (of course some other external program would be called to properly play it) What about resizing?
Wouldn't it be great to have a library on top of ncurses which allowed you to do these things plus more easily, just as the java swing allows one to easily build GUI programs.
I'm a minimalist fag, so I'd love for more TUI programs when appropriate, and it seems having something like this would be a yuuge help towards making TUI programs

Attached: textadept-ncurses.png (1135x737, 211.04K)

Other urls found in this thread:

github.com/saitoha/libsixel
invisible-island.net/ncurses/ncurses.faq.html
timecube.2enp.com/
port70.net/~nsz/c/c99/n1256.html#J.2
verisimilitudes.net/2018-04-04
en.wikipedia.org/wiki/Computer_terminal#"Intelligent"_terminals
multicians.org/terminals.html
en.wikipedia.org/wiki/Computer_terminal
en.wikipedia.org/wiki/Block-oriented_terminal
en.wikipedia.org/wiki/IBM_3270
verisimilitudes.net/mmc-chip8
github.com/nsf/termbox
xn--rpa.cc/essays/term
twitter.com/NSFWRedditVideo

ranger uses images with an X11 hack, you can't use that with ncurses. I don't know if you can play music or video with it.
There are libraries built on top of ncurses to make stuff easier, but I don't have any experience with them. Just google it and you should find them.

Use QT like a normal person.
There is literally no good reason for making anything with Ncurses, it's slow, inefficient and convoluted.

Then how come w3mimgdisplay works in the tty?

Attached: wew.png (1680x1050, 606.56K)

must be some framebuffer thing. even ttys arent like they used to be

fun fact, you can easily write stuff to /dev/fbcon. It's a device. With ffmpeg and the right format, you can "write" pictures to it. Ranger probably does something like that.

With terminal emulators in X11 you can use sixels, but only if the terminal emulator in question supports it. There is also yaft, which is a framebuffer terminal (doesn't need X) it also supports sixels (and 256 colors)

You have the mental illness part down but I think everything else is wrong. You sound more like a ricer or LARPer.

I'm sure someone has already made a XUL type markup for ncurses.

Unrelated question: How do you install the the English version man page for w3m? When I try it I only get the German version.

Is Ncurses really worth it when you have access to a real GUI? It seems like it's just as complex as traditional GUIs, just with worse capabilities and random limitations due to being console based. For basic modal dialogues and shit it's okay, but I see people trying to draw graphics with ASCII art and it just looks fucking retarded.

The problem with GUI libraries is they always want to be an enterprise-ready library that lets you customize and modularize every single thing about your GUI so that you can actually make real, professional programs with it like Office or whatever the fuck. But 90% of the time you're working on a small project and you're not gonna use use 90% of those features, and they create complexity up front because now basic things are more complicated than they need to be. I wish there was a library that is deliberately limited in how powerful or customizable it is, as a trade off to allow minimal effort GUI for prototyping/hobby projects. If I ever make the app mature enough to sell, I'd just hire a real GUI programmer.


Well, if it's something that can only run in a terminal, like an OS installer, driver manager (in case graphics crash) or something meant for ssh.