Get and set terminal size
Denis Mezhov via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Apr 20 09:08:23 PDT 2014
On Saturday, 19 April 2014 at 12:06:58 UTC, FreeSlave wrote:
> I use
> ldc2 main.d -L-lcurses
> or
> dmd main.d -L-lcurses
>
> and following source code:
>
> import std.stdio;
>
> extern(C) int tgetnum(const(char) *id);
>
> int main()
> {
> writeln(tgetnum("li"));
> return 0;
> }
>
> Note that you don't need to apply toStringz to string literals
> since they implicitly cast to const char*.
It's work) Thanks.
More information about the Digitalmars-d-learn
mailing list