digitalmars.D - Getchar()
- Andreas Schmid (3/3) Apr 21 2005 Shouldn't getchar() read on character and then return? It always reads a...
- zwang (2/8) Apr 21 2005 This is exactly the same standard behavior of C's getchar().
- TechnoZeus (3/6) Apr 21 2005 Which getchar() on which operating system?
- Andreas Schmid (3/14) Apr 21 2005 Windows XP.
- TechnoZeus (3/20) Apr 21 2005 Which getchar ? and is that compiled and linked for Windows, or as a Do...
- Stewart Gordon (8/10) Apr 21 2005 Yes, because it reads from the standard input, and that's the way the
Shouldn't getchar() read on character and then return? It always reads a whole line here. -Andreas
Apr 21 2005
Andreas Schmid wrote:Shouldn't getchar() read on character and then return? It always reads a whole line here. -AndreasThis is exactly the same standard behavior of C's getchar().
Apr 21 2005
Which getchar() on which operating system? TZ "Andreas Schmid" <monkey gmx.info> wrote in message news:d48c0u$3jr$1 digitaldaemon.com...Shouldn't getchar() read on character and then return? It always reads a whole line here. -Andreas
Apr 21 2005
Windows XP. "TechnoZeus" <TechnoZeus PeoplePC.com> wrote in message news:d48hqs$943$1 digitaldaemon.com...Which getchar() on which operating system? TZ "Andreas Schmid" <monkey gmx.info> wrote in message news:d48c0u$3jr$1 digitaldaemon.com...Shouldn't getchar() read on character and then return? It always reads a whole line here. -Andreas
Apr 21 2005
Which getchar ? and is that compiled and linked for Windows, or as a Dos program? TZ "Andreas Schmid" <monkey gmx.info> wrote in message news:d48j2l$ai0$1 digitaldaemon.com...Windows XP. "TechnoZeus" <TechnoZeus PeoplePC.com> wrote in message news:d48hqs$943$1 digitaldaemon.com...Which getchar() on which operating system? TZ "Andreas Schmid" <monkey gmx.info> wrote in message news:d48c0u$3jr$1 digitaldaemon.com...Shouldn't getchar() read on character and then return? It always reads a whole line here. -Andreas
Apr 21 2005
Andreas Schmid wrote:Shouldn't getchar() read on character and then return? It always reads a whole line here.Yes, because it reads from the standard input, and that's the way the standard input works. To read a single keystroke, use getch. Stewart. -- My e-mail is valid but not my primary mailbox. Please keep replies on the 'group where everyone may benefit.
Apr 21 2005