delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/02/27/17:55:59

From: pfitz AT pratique DOT fr (Tony FITZPATRICK)
Subject: Re: "GetNumberOfConsoleInputEvents" never 0?
27 Feb 1997 17:55:59 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199702272249.XAA05981.cygnus.gnu-win32@prat.iway.fr>
Mime-Version: 1.0
X-Sender: pfitz AT mail DOT pratique DOT fr (Unverified)
X-Mailer: Windows Eudora Light Version 1.5.2
Original-To: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019