readline / Gnu readline
Adam D. Ruppe
destructionator at gmail.com
Wed Jan 29 22:40:35 UTC 2020
On Wednesday, 29 January 2020 at 22:10:04 UTC, bachmeier wrote:
> That's pretty cool. I didn't know anything about this. Taking
> the example from here:
Yeah, readline is a really nice lib, super simple interface. I
think it is in large part responsible for the GPL's success too
since it is so useful, so simple, and so correctly licensed :)
And knowing how extern(C) is so easy is good to know too - using
any C lib from D can be done similarly and for a lot of libs it
is actually this simple.
BTW I also have a comparable function in my terminal.d:
http://dpldocs.info/experimental-docs/arsd.terminal.html#get-line
though of course then you gotta download my code file and add it
to your build (which is easy but still). mine also works on
windows!
More information about the Digitalmars-d-learn
mailing list