www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - curses/ncurses liberary in D

reply pascal111 <judas.the.messiah.111 gmail.com> writes:
How can I include "ncurses" liberary in D? I'm using Ubuntu and 
GDC!
Nov 02 2021
parent reply dangbinghoo <dangbinghoo gmail.com> writes:
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
Nov 02 2021
parent reply "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
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
Nov 02 2021
parent harakim <harakim gmail.com> writes:
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
Nov 02 2021