| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | C Set ++ |
Excerpted from message dated 09-28-95, Bill Patterson to All:
BP>help!
BP>I'm getting really REALLY frustrated with C Set ++. I need to detect
>a keypress, but none of the input routines will return untill a
>character and a return is entered. I currently need to detect a
>carriage return by itself, but will need to detect any key in the
>future for a "hotkeys" effect. I've tried everything...
Bill--
IBM C Set++ has the same non-ANSI I/O functions as all
other C compilers I am familiar with. However, C Set++ is a little more
ANSI-compliant than many other compilers. In accordance with the
standard, non-ANSI library functions have an underscore as the leading
symbol in the function name.
_kbhit() returns a nonzero value if there is anything waiting in the
session's logical type-ahead buffer; it returns a zero if the buffer is
empty. _getch() returns the first character (waiting until one appears
if necessary) without echoing that character to the screen. (_getch()
will not read Ctrl-Brk.) For example: if (_kbhit()) ch = _getch();
See _kbhit() and _getch() in the C Set++ manual: "C Library
Reference" for further details.
Hope this helps.
--Murray
___
* MR/2 2.25 #120 * One printed manual is worth a thousand INF files
---
* Origin: 2" x 4" bbs - a basic board - (914) 271-9407 (1:2625/108)SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 2625/108 1 2606/583 2605/606 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.