This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: "GetNumberOfConsoleInputEvents" never 0?


Sorry, my last posting was lacking some info.

I am running a vanilla Windows95 on a Pentium and the example program I
included is even more illuminating if you add a second read.

#include <stdio.h>

main()
{
  int tty;
  int space_avail = 128;
  long chars_avail;
  unsigned char input[128];


  tty = fileno (stdin);
  chars_avail = read (tty, &input[0], space_avail);
  printf("chars_avail = %d\n", chars_avail);
  chars_avail = read (tty, &input[0], space_avail);
  printf("chars_avail = %d\n", chars_avail);
  return 0;
}

-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]