View previous topic :: View next topic |
Author |
Message |
kolcon Tux's lil' helper
Joined: 21 Sep 2007 Posts: 96 Location: Europe, CZ
|
Posted: Wed Mar 21, 2012 3:26 pm Post subject: ncurses or slang? |
|
|
Hello,
after years of Gentoo usage I am still confused about ncurses and slang.
I see debates going back to 1999.
Now I see mc dropped ncurses in favour of slang.
So, what is their difference and which is "better"?
Thanks... |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9838 Location: almost Mile High in the USA
|
Posted: Sat Mar 24, 2012 4:27 pm Post subject: |
|
|
Apparently they both have text mode features that programs need.
I suppose it's hard to tell which is "better" as they're different. Ncurses has its roots in curses which is a classic UN*X library so it sticks around. Slang is somewhat of a newcomer, it's apparently a full interpreted programming language that has text windowing features, and these windowing features is what programs use more. It also seems to claim to have text spew reduction, which speeds up usage on slow speed terminals (which of course tends not to be an issue anymore...)
Ncurses is smaller as it doesn't have a full interpreter...
I suppose we just have to use whichever library our favorite apps use. Unless you're willing to rewrite for the other library?
I hate slang. Very confusing to websearch... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sat Mar 24, 2012 6:12 pm Post subject: Re: ncurses or slang? |
|
|
kolcon wrote: | which is "better"? |
ncurses is a dependency in far more apps than slang.
ncurses is needed for bash, so people will have it installed anyway.
Therefore for a Gentooer (or personal-distro-compiler), it's better, using my limited logic |
|
Back to top |
|
|
gorkypl Guru
Joined: 04 Oct 2010 Posts: 444 Location: Kraków, PL
|
Posted: Sat Mar 24, 2012 6:35 pm Post subject: Re: ncurses or slang? |
|
|
kolcon wrote: |
Now I see mc dropped ncurses in favour of slang.
|
Quite the opposite - ncurses is default and it does not even has a flag in mc, while slang needs to be explicitly enabled via USE. _________________ BTW, TWM FTW! |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9838 Location: almost Mile High in the USA
|
Posted: Sat Mar 24, 2012 7:23 pm Post subject: |
|
|
Kolcon, where are you seeing ncurses being dropped?
Currently Gentoo/Portage, if USE=slang then slang is used, else ncurses is used.
For reuse of as much code as possible and to save disk space I'd prefer ncurses; but there are a number of slang apps out there now too... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
kolcon Tux's lil' helper
Joined: 21 Sep 2007 Posts: 96 Location: Europe, CZ
|
Posted: Sun Mar 25, 2012 1:26 pm Post subject: |
|
|
eccerr0r wrote: | Kolcon, where are you seeing ncurses being dropped?
Currently Gentoo/Portage, if USE=slang then slang is used, else ncurses is used.
For reuse of as much code as possible and to save disk space I'd prefer ncurses; but there are a number of slang apps out there now too... |
OK, thanks to everybody for explanations. I though that maybe one obsoletes the other,
but it does not seem to be the case.
It got me wondering as I saw (*-ncurses) for the mc package during one emerge -u world... |
|
Back to top |
|
|
|