delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/04/03/03:37:16

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Mon, 03 Apr 2000 09:36:02 +0200
From: "Mats T. Nilsson" <Mats DOT T DOT Nilsson AT era DOT ericsson DOT se>
Subject: Reading from keyboard without echo
To: cygwin AT sourceware DOT cygnus DOT com
Message-id: <38E849E2.6C5DBBB1@era.ericsson.se>
Organization: NA/ERA/RL/ME
MIME-version: 1.0
X-Mailer: Mozilla 4.05 [en] (X11; I; SunOS 5.6 sun4u)
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id DAA02576

Hi!

I'm running Cygwin in a Win98 window.

In a "plain vanilla" C-program I want to poll the keyboard an when a key
is pressed I want to read it without having the character echoed to the
Cigwin-window.

I have managed to arrange th polling using select, but I haven't been
able to read the character.

I've tried getc(), gerchar(), fread() and read() but all these functions
echo the character and will block until the CR is pressed after the key.
This CR is the main problem since it scrolls the content of the window.

Any hints?

--
Regards,
----------------------------------------------------------------------
Mats Nilsson                    Email: Mats DOT T DOT Nilsson AT era DOT ericsson DOT se
Ericsson Radio Systems AB       WWW:   http://www.algonet.se/~gafvelin
NA/ERA/RL/KE                    Phone/mobile: + 46 8 50878078
Augustendalsvägen 21 (10B31)    Home:         + 46 8 7201233
SE-131 89 STOCKHOLM, SWEDEN     Fax:          + 46 8 4220540
PGP-key  0x91BAB71D  DEF5 B013 07C4 84C3 1CEE 15DE E345 1668 91BA B71D
PGP-key  0x5DA31679  1844 9D0B E17C 96C9 D440 CA96 CF8B C0E0
----------------------------------------------------------------------




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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