OSX prompt limit

Joel via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Sep 9 14:27:03 PDT 2015


On Wednesday, 9 September 2015 at 17:47:44 UTC, Adam D. Ruppe 
wrote:
> Maybe you can try gnu readline instead:
>
>
> extern(C) char* readline(const(char)* prompt);
> pragma(lib, "readline");
> pragma(lib, "curses");
> void main() {
>         auto line = readline("your line: ");
>         import std.stdio, std.conv;
>         writeln(to!string(line));
> }

Thanks Adam. That works better than normal. Up and down don't 
work though.


More information about the Digitalmars-d-learn mailing list