-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
I'm porting a DOS application to run on Linux. I need to replace this
function or use an equivalent. Anyone knows how or where I can get this
function's equivalent (or maybe someones hacked an implementation that
works on Linux)?
look forward to your response
Sorry, but kbhit() isn't a C standard function, and this newsgroup can't help
you with replacing it.
<OT>
1) You'll have better luck in one of the comp.os.linux newsgroups. I'd suggest
comp.os.linux.development.apps
2) kbhit() can be emulated with a judicious use of termios() and ioctl() calls.
Neither termios() nor ioctl() are C standard functions, and should also be
discussed elsewhere.
3) If you are trying to use kbhit(), then you are trying to solve the wrong
problem. Find a way to code your program so that it is device independant, and
does not need to know when a key has been pressed. Many systems do not have
'keys' to be hit, and most applications should be runnable entirely from files.
kbhit() or workalikes restrict your program to interactive use in a keyboarded
environment, or worse, and should be avoided.
</OT>
- --
Lew Pitcher
IT Specialist, Enterprise Data Systems,
Enterprise Technology Solutions, TD Bank Financial Group
(Opinions expressed are my own, not my employers')
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
iD8DBQFCWsiKagVFX4UWr64RAkMbAKDaX1auC97O9ERsek0FE53ebPsFRACg0k32
Y7Rg0j9cZyUWjhgmM3t0UAs=
=S365
-----END PGP SIGNATURE-----