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.
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 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 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.
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.
Ruby used to ship with ncurses-support built-in but it was fairly low-level and it moved to https://github.com/ruby/curses
look at ranger FIle Manager with VIM shortcuts. The fastest and best File Manager I have ever used. http://ranger.nongnu.org/