delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/09/07/00:46:03

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Thu, 7 Sep 2000 00:44:48 -0400
To: cygwin AT sourceware DOT cygnus DOT com
Cc: keithf AT gaast DOT demon DOT co DOT uk
Subject: Re: caps lock fault
Message-ID: <20000907004448.A13324@cygnus.com>
Reply-To: cygwin AT sources DOT redhat DOT com
Mail-Followup-To: cygwin AT sourceware DOT cygnus DOT com, keithf AT gaast DOT demon DOT co DOT uk
References: <TJpaTKAjuxt5EwnO AT gaast DOT demon DOT co DOT uk>
Mime-Version: 1.0
User-Agent: Mutt/1.3.6i
In-Reply-To: <TJpaTKAjuxt5EwnO@gaast.demon.co.uk>; from keithf@gaast.demon.co.uk on Thu, Sep 07, 2000 at 05:37:55AM +0100

On Thu, Sep 07, 2000 at 05:37:55AM +0100, Keith Fielding wrote:
>On my W95 system, I have a problem with the caps lock which behaves as a
>shift lock. (The numeric keys are all shifted as well as the alpha
>keys). While I have seen mention of this in the archives, I have not
>found any solution there (other than the fact that does not seem to
>affect NT based systems).
>
>I wrote a short test program:
>
>#include <stdio.h>
>
>int main (void)
>{
>  char buffer[80];
>
>  gets (buffer);
>  puts (buffer);
>  return 0;
>}
>
>When I compile this (gcc -o mytest mytest.c) it exhibits the problem
>whether I run it in bash window or an MS-DOS window. When I compile it
>with the -mno-cygwin switch it works correctly when run from an MS-DOS
>window but from a bash window it simply advances two lines and returns
>to the bash prompt! The behaviour is unchanged if I replace the call to
>gets with a call to fgets.
>
>I then tried this program:
>
>#include <conio.h>
>#include <stdio.h>
>
>int main (void)
>{
>  int ch;
>
>  do {
>    ch = getch ();
>    printf ("%c\n", ch);
>  } while (ch != 'q');
>  return 0;
>}
>
>This can only be compiled with the -mno-cygwin switch because of the
>conio header. It displays the fault whether I run it in a bash window or
>an MS-DOS window.
>
>Any ideas?

Sure.  Submit a patch to correct this behavior.  This is an open source
project and patches are always welcome.

fhandler_console.cc contains the code that is likely to be causing this
behavior.

cgf

--
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