Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
netbsd-curses - a (mostly) drop in replacement to ncurses
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
blopsalot
Apprentice
Apprentice


Joined: 28 Jan 2017
Posts: 231

PostPosted: Sun Dec 17, 2017 12:10 pm    Post subject: netbsd-curses - a (mostly) drop in replacement to ncurses Reply with quote

I finally got sick of ncurses and went looking for replacement. I'm in the process of testing. Seems upstream python has already been patched to support it. Most other packages will pickup the separate terminfo lib with pkgconfig. Anyone else interested in this?

https://github.com/sabotage-linux/netbsd-curses


my portage dev skills are still weak so i hacked it in ugly as a ncurses upgrade.

i am using ~amd64 glibc not musl.

DISCLAIMER: I am only verifying builds so far, expect some glitches! ;)

good from portage
____________________
bash
nano
screen
gettext
psmisc
cmake
texinfo
openrc
pinentry
parted
alsa-utils

needs patch from upstream
____________________
python (2.7.9999 and 3.5.9999 appears fixed)
dialog (dialog-1.3-20171209 appears fixed)
procps (9999 appears fixed)
cdk (cdk-5.0-20171209 appears fixed)

one line change
____________________
util-linux (fixed, tparm function in more.c)

fails (need to see what required to fix still)
____________________
lynx


Last edited by blopsalot on Tue Dec 19, 2017 9:00 am; edited 1 time in total
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sun Dec 17, 2017 8:31 pm    Post subject: Reply with quote

Interesting to know... how well does it handle unicode wide chars?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21431

PostPosted: Mon Dec 18, 2017 12:04 am    Post subject: Reply with quote

For any fixes you find that aren't yet available upstream (or even for those that are, if upstream hasn't released a version with the fix), would you mind posting here links to those fixes? That would help others who want to experiment with this, so that they do not need to rediscover fixes you already found/wrote. To keep thread noise down, you could edit such links into your opening post.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6050
Location: Removed by Neddy

PostPosted: Mon Dec 18, 2017 12:23 am    Post subject: Reply with quote

What aspects of curses fscked you off? What does this replacement do better?
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
blopsalot
Apprentice
Apprentice


Joined: 28 Jan 2017
Posts: 231

PostPosted: Mon Dec 18, 2017 6:13 am    Post subject: Reply with quote

Ant P. wrote:
Interesting to know... how well does it handle unicode wide chars?

i am still learning as well, but it seems easier to work with then ncursesw.

Quote:
For any fixes you find that aren't yet available upstream (or even for those that are, if upstream hasn't released a version with the fix), would you mind posting here links to those fixes? That would help others who want to experiment with this, so that they do not need to rediscover fixes you already found/wrote. To keep thread noise down, you could edit such links into your opening post.

util-linux change was a one liner, the build error takes u straight to right place. yeah im hoping to have a semi functional overlay up soon. yeah i will just keep editing it.

Quote:
What aspects of curses fscked you off? What does this replacement do better?

the project page describes it better, but what got me looking elsewhere is a minor issue i was having had me looking at bugs.gentoo.org and then i noticed the CVEs are starting to pile up. it's easier to work with both in code readability and it uses standard pkgconfig. ncurses has always been a pain in the #@$ for distro maintainers. it's primary use may end up being just embedded, but gentoo needs it either way. :)
Back to top
View user's profile Send private message
blopsalot
Apprentice
Apprentice


Joined: 28 Jan 2017
Posts: 231

PostPosted: Mon Dec 25, 2017 4:28 am    Post subject: Reply with quote

So this will remain embedded only, I made the most progress using https://github.com/troglobit/editline instead of readline, but I gave up on trying to get bash to work right with it for now. :) i did find the Mr Thomas Dickey is rolling along with upstream ncurses though, I had made mistake of looking at GNU. He had already fixed my issue!

I think Gentoo should change ebuild for ncurses to versioning of cdk

https://github.com/blopsalot/blop-overlay/tree/master/sys-libs/ncurses

Changelog: http://invisible-island.net/ncurses/NEWS.html
https://invisible-mirror.net/archives/ncurses/current/


i created bug https://bugs.gentoo.org/642256
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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