www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - iostream bioskey(1) replacement?

↑ ↓ ← "yochanan" <yochanan aquanet.co.il> writes:
bs"d

Hi-  is there an easy way to find out if there are any characters pending in
the istream input buffer (without waiting for a carriage return)?  I'm
looking for a bioskey(1) replacement function that will work in a DOS
program under Windows XP (win32).  Thanks.
Apr 07 2003
↑ ↓ "Walter" <walter digitalmars.com> writes:
Try kbhit().

"yochanan" <yochanan aquanet.co.il> wrote in message
news:b6rb1k$145r$1 digitaldaemon.com...
 bs"d

 Hi-  is there an easy way to find out if there are any characters pending

 the istream input buffer (without waiting for a carriage return)?  I'm
 looking for a bioskey(1) replacement function that will work in a DOS
 program under Windows XP (win32).  Thanks.

Apr 07 2003
→ "yochanan" <yochanan aquanet.co.il> writes:
bs"d
Thanks Walter - I'll try it.

"Walter" <walter digitalmars.com> כתב
בהודעה:b6sk92$dao$1 digitaldaemon.com...
 Try kbhit().

 "yochanan" <yochanan aquanet.co.il> wrote in message
 news:b6rb1k$145r$1 digitaldaemon.com...
 bs"d

 Hi-  is there an easy way to find out if there are any characters


 in
 the istream input buffer (without waiting for a carriage return)?  I'm
 looking for a bioskey(1) replacement function that will work in a DOS
 program under Windows XP (win32).  Thanks.


Apr 12 2003
→ "yochanan" <yochanan aquanet.co.il> writes:
bs"d
Thanks, Walter - I'll try it.

"Walter" <walter digitalmars.com> כתב
בהודעה:b6sk92$dao$1 digitaldaemon.com...
 Try kbhit().

 "yochanan" <yochanan aquanet.co.il> wrote in message
 news:b6rb1k$145r$1 digitaldaemon.com...
 bs"d

 Hi-  is there an easy way to find out if there are any characters


 in
 the istream input buffer (without waiting for a carriage return)?  I'm
 looking for a bioskey(1) replacement function that will work in a DOS
 program under Windows XP (win32).  Thanks.


Apr 12 2003