Get and set terminal size

Denis Mezhov via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Apr 19 03:59:25 PDT 2014


On Saturday, 19 April 2014 at 10:39:43 UTC, Adam D. Ruppe wrote:
> Blargh, I don't know teh ldc switch for it :(
>
> Try adding pragma(lib, "curses"); (or ncurses) to your file 
> with main in it, i think ldc supports that.





pragma(lib, "curses");

extern(C):
int tgetnum(const(char) *capname);

hmm segfault error :(
Segmentation fault: 11


More information about the Digitalmars-d-learn mailing list