Thread overview
curses/ncurses liberary in D
Nov 03, 2021
pascal111
Nov 03, 2021
dangbinghoo
Nov 03, 2021
H. S. Teoh
Nov 03, 2021
harakim
November 03, 2021

How can I include "ncurses" liberary in D? I'm using Ubuntu and GDC!

November 03, 2021

On Wednesday, 3 November 2021 at 00:50:31 UTC, pascal111 wrote:

>

How can I include "ncurses" liberary in D? I'm using Ubuntu and GDC!

Search ncurses in Dub registray shows that there's 3 ncurses D bingdings.

https://code.dlang.org/search?q=ncurses

November 02, 2021
On Wed, Nov 03, 2021 at 01:33:28AM +0000, dangbinghoo via Digitalmars-d-learn wrote:
> On Wednesday, 3 November 2021 at 00:50:31 UTC, pascal111 wrote:
> > How can I include "ncurses" liberary in D? I'm using Ubuntu and GDC!
> 
> Search ncurses in Dub registray shows that there's 3 ncurses D bingdings.
> 
> https://code.dlang.org/search?q=ncurses

In addition to that, I highly recommend Adam's arsd.terminal as an ncurses replacement.  It's not API equivalent, but is much more idiomatic D than any ncurses binding would be.


T

-- 
Truth, Sir, is a cow which will give [skeptics] no more milk, and so they are gone to milk the bull. -- Sam. Johnson
November 03, 2021
On Wednesday, 3 November 2021 at 01:39:02 UTC, H. S. Teoh wrote:
> On Wed, Nov 03, 2021 at 01:33:28AM +0000, dangbinghoo via Digitalmars-d-learn wrote:
>> On Wednesday, 3 November 2021 at 00:50:31 UTC, pascal111 wrote:
>> > How can I include "ncurses" liberary in D? I'm using Ubuntu and GDC!
>> 
>> Search ncurses in Dub registray shows that there's 3 ncurses D bingdings.
>> 
>> https://code.dlang.org/search?q=ncurses
>
> In addition to that, I highly recommend Adam's arsd.terminal as an ncurses replacement.  It's not API equivalent, but is much more idiomatic D than any ncurses binding would be.
>
>
> T

https://github.com/adamdruppe/arsd/blob/master/terminal.d