delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/18/22:35: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
Message-ID: <002301c15846$93ab0be0$0200a8c0@mike>
From: "Chuck" <chuck AT nowhere DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Workarounds for the pipe character problem
Date: Fri, 19 Oct 2001 03:34:26 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

Here are a couple of ways to work around the problem of not being able to
type a pipe character when running bash in a DOS box under windows 95/98/Me
with a non-US keyboard.

When KEYB.COM is loaded, typing <Alt Gr>+` in a DOS box gives a pipe
character while <Shift>+\ give the broken pipe character. That's only in a
DOS box, for GUI programs these keys work the other way around.
Unfortunately <Alt Gr> doesn't seem to work for Win32 console apps in Win
95/98/Me DOS boxes.

So when you run bash in a DOS box, <Alt Gr>+` doesn't give a pipe, and
<Shift>+\ gives a broken pipe which is ignored by bash because it's a
non-ascii character. Running bash in an rxvt terminal is ok though, <Alt Gr>
gives a broken pipe (ignored), and <Shift>+\ gives a pipe.

A workaround for this would be to change the way KEYB.COM is remapping the
keyboard, putting the pipe character on <Shift>+\ where it can be got at
without using the <Alt Gr> key.

A pretty sensible way to do this would be to use XKEYB.EXE which comes with
FreeDOS instead of KEYB.COM. The keyboard map files are plain text and there
are instructions on editing them.

Alternatively, if you feel like hacking binaries you could have a go at
KEYBOARD.SYS. It turns out that this isn't easy, but the US keyboard layout
is hardcoded into KEYB.COM and is easy to spot and edit

see:
http://
groups.google.com/groups?hl=en&selm=3a59643c.4048012%40news.ozemail.com.au

How about a cygwin newsgroup?




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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