delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/03/16/10:00:49

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:references
:mime-version:content-type:in-reply-to; q=dns; s=default; b=pdQ9
d1sBkrUDim635ohmqk+m4aO/ndMv7lz2BYCOOevuRLUqyrVgxAswCYIIXxpnL4e8
7eAN/vderccjM+93QGHbnPGAMc3Oz4i2/TD+xg2wyFYHwg6GzhpMBUF2nPpG4YfH
KVWvvqrstac5WqOMZiyBqMG5fQkS93tVkW9VQis=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:references
:mime-version:content-type:in-reply-to; s=default; bh=DiXmqrZfai
DtMxfFHn+lYhd63ck=; b=RolCjb8dXnzcxfVvEUiSe8ZBnyRe7Q8GVZvDcIGblr
VDQoRdaOwDxAlHpFVBDLUcUcYXmk0FzIol7cPAG5xWMYBW3NWuWnD/s4v7/Qrlv7
RyYu97gu444Nt+ioMWyOagkGd8hEyGCjT0n2nnzzWWWtu0HbwJ5Np/miPcodLqlw
g=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=sk:texlive, minttys, mintty's, H*MI:sk:56E952E
X-HELO: mail-wm0-f50.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=NSs6BE8RvH2z6ef+p/h900vNcKqo9GqBK2gkYGjUiHY=; b=j5+uLT1npqr5vuaeefCZNm1+K6nQA0qEUGPFzf9BlgAXufs/nDL8/KCMulTm7oKsd6 QtIRrQExodWXhx9L9snesstEhwgBDhc5E8Ywkyr5l01yHs6aGGb7rr3/APqi0K1iusAv rGZlz1i8loCT6cIsXS1PpB03vJ9SlLjNLlKkCSLwFuECDBOPxW4DtsKPR1xXwIGwv4WK Ee+WYmqezZnHMht284g8L+HfCBsN3pmkkLJpETEPCex/5wg06dEMAKWkIw4COtaZdqxm yfZIi2TuWZBWwXJ5fOW+SzJj7x82d4XDTKuHdubDoIuodkiekEwhr3hs9uJZyp1XFpSu /PDA==
X-Gm-Message-State: AD7BkJK3dExtEcvePUGp84dJoIhMqKVm4Hc2/Whi8S6oY/eHME5n00mRp5URsCGz34zIFg==
X-Received: by 10.194.174.231 with SMTP id bv7mr4030827wjc.17.1458136815252; Wed, 16 Mar 2016 07:00:15 -0700 (PDT)
Date: Wed, 16 Mar 2016 14:00:12 +0000
From: Adam Dinwoodie <adam AT dinwoodie DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: Running texconfig breaks backspace in Bash/MinTTY
Message-ID: <20160316140012.GP29016@dinwoodie.org>
References: <20160316114546 DOT GO29016 AT dinwoodie DOT org> <56E952E5 DOT 2000205 AT cornell DOT edu>
MIME-Version: 1.0
In-Reply-To: <56E952E5.2000205@cornell.edu>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-IsSubscribed: yes

On Wed, Mar 16, 2016 at 08:34:45AM -0400, Ken Brown wrote:
> On 3/16/2016 7:45 AM, Adam Dinwoodie wrote:
> >Here's an interesting bug: normally in a Bash session in MinTTY,
> >backspace and Ctrl+H both delete the previous character, as expected.
> >However, after running texconfig and returning to the shell, both the
> >backspace key and Ctrl+H appear to just print "^H" to the terminal.
> >
> >It looks like this is genuinely the terminal trying to render a
> >backspace character, rather than just backspacing, given the following:
> >
> >     $ printf ^H | xxd
> >     00000000: 08                                       .
> >
> >(To get that, I typed "printf {backspace} | xxd".)
> >
> >It's not clear to me whether this is Bash, MinTTY or texconfig that's
> >misbehaving.  Ctrl+W to delete a word, Ctrl+R to get (for me) fzf's
> >history search, and using the up and down arrows to navigate history all
> >work.  Running Vim, opening a new Bash shell from within the duff one,
> >or SSHing to another box has Ctrl+H working just fine within that
> >process, but the bugged behaviour resumes when I return to the original
> >Bash shell.
> 
> I can't reproduce this on my system.  I tried 'texconfig --help' and
> 'texconfig conf'.  What's the precise texconfig command that you
> used?

I'm just running `texconfig`, with no arguments.  There's a warning
prompt, that you press Enter to clear, then there's an interactive menu
that appears -- I'm assuming it's something about that interactive menu
that's causing the problem.

> Could this have something to do with fzf?

No; I uninstalled it to check.

Turns out, after some digging, MinTTY's "Keys" > "Backspace sends ^H"
setting is critical here -- my .minttyrc has `BackspaceSendsBS=yes`, but
if I remove that line and restart MinTTY, everything works fine.  If I
add that setting to a fresh Cygwin install that contains only the Base
packages, texlive-collection-basic, and their dependencies, I can
reproduce the issue.

That probably explains why you can't reproduce it, but it still seems
like a bug -- I wouldn't expect backspace behaviour to change in that
fashion regardless of that bit of configuration.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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