* Read from keyboard?
@ 1997-08-31 13:43 Neal Krawetz
0 siblings, 0 replies; only message in thread
From: Neal Krawetz @ 1997-08-31 13:43 UTC (permalink / raw)
To: gnu-win32
Hello,
I have a text-based application that has been successfully ported to OS/2,
SunOS, Linux, IRIX, and HP-UX. (The only difference is the non-blocking
read from a keyboard function.) I'd like to port it to Win95.
I have tried GCC and an older version of Cygnus-GCC, but both seem to be
unable to perform a non-blocking read from a text-based application.
I'm basically looking for "int getch(stdin)" where it returns the
character in the read buffer, or -1 if no character is available.
Under GCC for OS/2, the function _read_kbd(0,0,0) does exactly what I
want. Under Unix, we use curses to set stdin to non-blocking.
Is a possible to make a text-based application with non-blocking read from
stdin using the current Cygnus GCC compiler? If so, how?
(I wrote about 6 months ago with the same question and was told that it
currently cannot be done, but may be possible in the future.)
-Neal
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-08-31 13:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-31 13:43 Read from keyboard? Neal Krawetz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).