News for hackers. Stuff that matters.
Re:Ncurses Programming How to (2005) by dmacvicar on Monday January 18, 2016 @04:12PM (#10926986)
People seem to forget that ncurses is very low level and more equivalent to the painting engine of a GUI toolkit than to the toolkit itself.

The YaST project has a library called libyui ( https://github.com/libyui , C++) that provides a widget library with multiple backends: Qt, Gtk and also Ncurses.

The ncurses implementation has internally a very powerful wrapper on top of curses that does layout and other things you would only find in GUI toolkits.

I have always dreamed of extracting this code from the ncurses backend and making it a generic library, hopefully with a C API to allow for easy binding but I never got to it.

Closes thing I have found is python specific: http://urwid.org and some Java stuff like http://bmsi.com/tuipeer .

Miguel de Icaza also wrote a very nice toolkit for .NET ( http://www.mono-project.com/docs/tools+libraries/libraries/m... ) and it is also one of the most useful libraries out there, but it is still nowhere as powerful as the YaST one in terms of automatic layouts.

The world needs a good ncurses toolkit. Usability is a camp dominated by graphic designers, but I have never seen users happier than my dad using Quattro Pro in text mode.

Re:Ncurses Programming How to (2005) by p4bl0 on Monday January 18, 2016 @12:36PM (#10925636)
This reminds me when I just moved at the beginning of my first uni year. I had no Internet connection at my place for the first month, so to entertain myself I decided to write a Tetris in the terminal. I knew C fairly well already but I had never used ncurses nor did any system programming. I ended up learning ncurses and UNIX signals mechanisms solely from the man pages. Good times.
Re:Ncurses Programming How to (2005) by teddyh on Monday January 18, 2016 @10:15AM (#10924813)
Ncurses is a pretty low level to target, nowadays. I’d recommend something like Urwid (for Python) or similar higher-level for your language of choice.
Re:Ncurses Programming How to (2005) by henesy on Monday January 18, 2016 @12:06PM (#10925455)
If you want some kind of abstraction termbox is a pretty reasonable level above straight ncurses. There's also termbox-go fwiw. https://github.com/nsf/termbox https://github.com/nsf/termbox-go
Re:Ncurses Programming How to (2005) by shermanyo on Monday January 18, 2016 @09:21PM (#10928507)
Do you have any good links to documentation / examples for termbox? That's been the biggest missing piece for looking into it in my limited spare time.
Re:Ncurses Programming How to (2005) by kawsper on Monday January 18, 2016 @11:28AM (#10925262)
Do you know of any for Ruby? Most of them seemed abandoned when I looked around.

Ruby used to ship with ncurses-support built-in but it was fairly low-level and it moved to https://github.com/ruby/curses

Re:Ncurses Programming How to (2005) by baldfat on Monday January 18, 2016 @11:04AM (#10925124)
Ncurses is my preferred tools still.

look at ranger FIle Manager with VIM shortcuts. The fastest and best File Manager I have ever used. http://ranger.nongnu.org/

Re:Ncurses Programming How to (2005) by agumonkey on Monday January 18, 2016 @12:10PM (#10925472)
Surprisingly I stopped using it because a few times, it was lagging.
Re:Ncurses Programming How to (2005) by baldfat on Monday January 18, 2016 @02:34PM (#10926355)
Well it is built on Python and for the life of me I never have a consistent experience with several python tools. (I still love Python, but I have really stopped using it personally)
Re:Ncurses Programming How to (2005) by agumonkey on Monday January 18, 2016 @03:09PM (#10926569)
Yeah, I know, I didn't expect blazing fast, it was just that too much slow for me to notice and stop caring. Retrying now, maybe python changed, maybe I did, maybe my laptop.
Re:Ncurses Programming How to (2005) by baldfat on Monday January 18, 2016 @09:17PM (#10928491)
Ranger hicups very rearly. The speed of doing my files is just way to easy. I love :bulkrename with vim opens up and I change the file names in Vim :wq and boom files renamed.
Re:Ncurses Programming How to (2005) by JupiterMoon on Monday January 18, 2016 @02:45PM (#10926433)
It varies hugely for a single user (me).
Re:Ncurses Programming How to (2005) by zwischenzug on Monday January 18, 2016 @11:58AM (#10925416)
That looks _fantastic_. Thanks!
Re:Ncurses Programming How to (2005) by sevensor on Monday January 18, 2016 @12:38PM (#10925647)
If you like having media previews in console windows, terminology is also a lot of fun.
Re:Ncurses Programming How to (2005) by Leszek on Tuesday January 19, 2016 @02:27AM (#10929270)
For those who have as much difficulty googling this as I did: https://www.enlightenment.org/about-terminology
Re:Ncurses Programming How to (2005) by JupiterMoon on Monday January 18, 2016 @02:43PM (#10926425)
ranger does this with image previews in xterm/uxterm and rxvt/urxvt.
Re:Ncurses Programming How to (2005) by zerr on Monday January 18, 2016 @03:40PM (#10926761)
Like Turbo Vision? :)
Re:Ncurses Programming How to (2005) by ape4 on Monday January 18, 2016 @10:57AM (#10925077)
The world needs more TUI.
Re:Ncurses Programming How to (2005) by linuxfan on Monday January 18, 2016 @12:50PM (#10925716)
The author of this howto and I were best friends back in college. Good times.
Re:Ncurses Programming How to (2005) by ape4 on Tuesday January 19, 2016 @10:05AM (#10931187)
Call him up and be friends again.