- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm looking for a way to check for standard input whether keyed in or
re-directed from a file. PEEKCHARQQ seems not to notice redirected input.
On UNIX we used a C function which set a time-delayed alarm interrupt,
then tried reading a character from stdin within that time-delay.
There is a C function PeekConsoleInput which may do the job but for the wrong reasons, i.e. input re-direction, I think, causes an error return.
re-directed from a file. PEEKCHARQQ seems not to notice redirected input.
On UNIX we used a C function which set a time-delayed alarm interrupt,
then tried reading a character from stdin within that time-delay.
There is a C function PeekConsoleInput which may do the job but for the wrong reasons, i.e. input re-direction, I think, causes an error return.
Link Copied
0 Replies
![](/skins/images/7746D4550810124E96DD2FD9957552B1/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page