OSX prompt limit

Joel via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Sep 8 18:35:24 PDT 2015


On Wednesday, 9 September 2015 at 00:44:57 UTC, via 
Digitalmars-d-learn wrote:
> On Wed, Sep 09, 2015 at 12:05:52AM +0000, Joel via 
> Digitalmars-d-learn wrote:
>> Now I get the error:
>
> What is your code calling the function? The prompt might just 
> be too long.

import terminal;

void main() {
     auto terminal = Terminal(ConsoleOutputType.linear); // I 
think I changed ConsoleOutputType from some thing else that 
didn't work
     auto line = terminal.getline("your prompt: ");
     terminal.writeln("You wrote: ", line);
}



More information about the Digitalmars-d-learn mailing list