I'm an extreme beginner to DLang (just started using it.. oh, an
hour ago?), and I already can't figure out a, what I'd consider,
fairly simplistic thing.
This is my current code:
module DTestApp1;
import std.stdio;
int main() {
write("Press any key to continue...");
stdin.read();
On Friday, 22 November 2019 at 04:10:23 UTC, FireController#1847
wrote:
I'm an extreme beginner to DLang (just started using it.. oh,
an hour ago?), and I already can't figure out a, what I'd
consider, fairly simplistic thing.
This is my current code:
module DTestApp1;
import std.stdio;
int
On Friday, 22 November 2019 at 04:19:40 UTC, mipri wrote:
On Friday, 22 November 2019 at 04:10:23 UTC,
FireController#1847 wrote:
I'm an extreme beginner to DLang (just started using it.. oh,
an hour ago?), and I already can't figure out a, what I'd
consider, fairly simplistic thing.
This is
On Friday, 22 November 2019 at 04:41:30 UTC, mipri wrote:
~this() { reset(); }
Oh, if you don't ever call raw() this will break your terminal.
I just copied some code from a toy program and adapted it, and
didn't notice that until I posted.
On Friday, 22 November 2019 at 04:22:07 UTC, FireController#1847
wrote:
Right, but readln will only wait until the user presses the
delimiter (by default Enter/Return). I want it to wait until
ANY key is pressed, not a specific key
If curses is available you can use it, at the cost of complete
On Friday, 22 November 2019 at 04:22:07 UTC, FireController#1847
wrote:
Right, but readln will only wait until the user presses the
delimiter (by default Enter/Return). I want it to wait until
ANY key is pressed, not a specific key
The documentation for std.stdio.File shows two functions for
On Friday, 22 November 2019 at 04:45:21 UTC, Mike Parker wrote:
On Friday, 22 November 2019 at 04:22:07 UTC,
FireController#1847 wrote:
Right, but readln will only wait until the user presses the
delimiter (by default Enter/Return). I want it to wait until
ANY key is pressed, not a specific k
On 11/21/19 9:10 PM, Mike Parker wrote:> On Friday, 22 November 2019 at
04:45:21 UTC, Mike Parker wrote:
> You need to call readf with a character
> format string (%c):
>
> import std.stdio;
> void main()
> {
> writeln("Press any key to continue...");
>
> char c;
> readf("%c", &c)
On Friday, 22 November 2019 at 04:45:21 UTC, Mike Parker wrote:
On Friday, 22 November 2019 at 04:22:07 UTC,
FireController#1847 wrote:
Right, but readln will only wait until the user presses the
delimiter (by default Enter/Return). I want it to wait until
ANY key is pressed, not a specific k
On Friday, 22 November 2019 at 09:25:37 UTC, Ali Çehreli wrote:
https://github.com/adamdruppe/arsd/blob/master/terminal.d
I have this exact thing as a sample in my docs:
http://dpldocs.info/experimental-docs/arsd.terminal.html#single-key
You could wrap that up in a function if you don't wan
On Friday, 22 November 2019 at 04:10:23 UTC, FireController#1847
wrote:
I'm an extreme beginner to DLang (just started using it.. oh,
an hour ago?), and I already can't figure out a, what I'd
consider, fairly simplistic thing.
This is my current code:
module DTestApp1;
import std.stdio;
int
11 matches
Mail list logo