Re: Begining with D

2013-10-13 Thread Elvis Zhou
On Sunday, 13 October 2013 at 11:45:39 UTC, Elvis Zhou wrote: On Thursday, 10 October 2013 at 18:56:58 UTC, Alejandro wrote: Hi I'm new in D, have some experience in JavaScript and PHP, and learned, for long time ago, C and a bit little C++ I remember that when I learned C with console outpu

Re: Begining with D

2013-10-13 Thread Elvis Zhou
On Thursday, 10 October 2013 at 18:56:58 UTC, Alejandro wrote: Hi I'm new in D, have some experience in JavaScript and PHP, and learned, for long time ago, C and a bit little C++ I remember that when I learned C with console output, it was two easy ways to catch input : one witch a required

Re: Begining with D

2013-10-13 Thread Robik
On Saturday, 12 October 2013 at 21:27:18 UTC, 1100110 wrote: On 10/10/2013 02:36 PM, Adam D. Ruppe wrote: On Thursday, 10 October 2013 at 19:19:53 UTC, Ali Çehreli wrote: import std.c.linux.termios; worth noting that this is Linux only. doing it on Windows is a little different. Working wi

Re: Begining with D

2013-10-12 Thread Adam D. Ruppe
On Saturday, 12 October 2013 at 21:27:18 UTC, 1100110 wrote: I had issues with getch() on ConsoleD... What was it? I fixed a bug in it right before posting that message the other day so it might be fixed now. If you too have issue, you can try github.com/D-Programming-Deimos/ncurses which h

Re: Begining with D

2013-10-12 Thread 1100110
On 10/10/2013 02:36 PM, Adam D. Ruppe wrote: On Thursday, 10 October 2013 at 19:19:53 UTC, Ali Çehreli wrote: import std.c.linux.termios; worth noting that this is Linux only. doing it on Windows is a little different. Working with console/terminal input and output can get surprisingly comple

Re: Begining with D

2013-10-10 Thread Adam D. Ruppe
On Thursday, 10 October 2013 at 19:19:53 UTC, Ali Çehreli wrote: import std.c.linux.termios; worth noting that this is Linux only. doing it on Windows is a little different. Working with console/terminal input and output can get surprisingly complex, and doing it cross-platform is easiest w

Re: Begining with D

2013-10-10 Thread Ali Çehreli
On 10/10/2013 11:56 AM, Alejandro wrote: > catched a single character, a single keydown The following program is based on the following newsgroup post: http://forum.dlang.org/post/mailman.2665.1300747084.4748.digitalmars-d-le...@puremagic.com The program prints character codes in hex until it

Begining with D

2013-10-10 Thread Alejandro
Hi I'm new in D, have some experience in JavaScript and PHP, and learned, for long time ago, C and a bit little C++ I remember that when I learned C with console output, it was two easy ways to catch input : one witch a required keydown, and an other witch catched a single character, a sin