Re: Prompting using stdio

2014-09-28 Thread via Digitalmars-d-learn
On Sunday, 28 September 2014 at 16:02:44 UTC, Nordlöw wrote: On Sunday, 28 September 2014 at 16:01:06 UTC, Nordlöw wrote: The piping to ddemangle messed things up... Thanks anyway. Does anybody have a better solution to this? I would still like the linker error output be ddemangled... You

Re: Prompting using stdio

2014-09-28 Thread Nordlöw
On Sunday, 28 September 2014 at 16:01:06 UTC, Nordlöw wrote: The piping to ddemangle messed things up... Thanks anyway. Does anybody have a better solution to this? I would still like the linker error output be ddemangled...

Re: Prompting using stdio

2014-09-28 Thread Nordlöw
On Sunday, 28 September 2014 at 15:36:17 UTC, Marc Schütz wrote: However, I can't reproduce it with DMD master on Linux, it works for me as intended. My fault. I was too clever and call the program through a wrapper to rdmd I call rdmd-dev containing #!/usr/bin/env bash # See also: http://

Re: Prompting using stdio

2014-09-28 Thread via Digitalmars-d-learn
On Sunday, 28 September 2014 at 14:48:03 UTC, H. S. Teoh via Digitalmars-d-learn wrote: On Sun, Sep 28, 2014 at 02:16:29PM +, "Nordlöw" via Digitalmars-d-learn wrote: I thought int main(string[] args) { import std.stdio; write(`Press enter to continue: `); stdout.flush; auto

Re: Prompting using stdio

2014-09-28 Thread H. S. Teoh via Digitalmars-d-learn
On Sun, Sep 28, 2014 at 02:16:29PM +, "Nordlöw" via Digitalmars-d-learn wrote: > I thought > > int main(string[] args) > { > import std.stdio; > write(`Press enter to continue: `); > stdout.flush; > auto line = readln(); > writeln("Read ", line); > return 0; > } > > w

Prompting using stdio

2014-09-28 Thread Nordlöw
I thought int main(string[] args) { import std.stdio; write(`Press enter to continue: `); stdout.flush; auto line = readln(); writeln("Read ", line); return 0; } would function as a good prompting but it doesn't. I outputs the string given to write *after* I've pressed r