Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ncurses or slang?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
kolcon
Tux's lil' helper
Tux's lil' helper


Joined: 21 Sep 2007
Posts: 96
Location: Europe, CZ

PostPosted: Wed Mar 21, 2012 3:26 pm    Post subject: ncurses or slang? Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9838
Location: almost Mile High in the USA

PostPosted: Sat Mar 24, 2012 4:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sat Mar 24, 2012 6:12 pm    Post subject: Re: ncurses or slang? Reply with quote

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
View user's profile Send private message
gorkypl
Guru
Guru


Joined: 04 Oct 2010
Posts: 444
Location: Kraków, PL

PostPosted: Sat Mar 24, 2012 6:35 pm    Post subject: Re: ncurses or slang? Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9838
Location: almost Mile High in the USA

PostPosted: Sat Mar 24, 2012 7:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
kolcon
Tux's lil' helper
Tux's lil' helper


Joined: 21 Sep 2007
Posts: 96
Location: Europe, CZ

PostPosted: Sun Mar 25, 2012 1:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum