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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=CkKpP6Zo6VNEQBkx NoUAD+zq8ufcNh4yU3MlRoolxCTMICL9aKskyxe+K8Z+YRFmGeRUOMaLdgnVAouK TC/tDDi+6twog1xKa+si+f9TMF0cHOLhp30GkigqLTds0V4yDVP8buFl+QeaA1aV y7r0e1N0LZ6pnCaTm6el0ErHXXc= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=oV6kMi5hXXQFvHr20XGood mF5u8=; b=P1hSpfE2TXy7DK6dz9BpYz7vQZc4e0voUAJbaCir0vkdYfEtQWVEvZ g5cIKQPD65fS2oO9cYa0NsLn+DbgMmnQKMmBUfez5cxdAcguGk2LI8cmhvx8slZV pJBdHcKjBN+F6Qh1MESIA2JA0VUqpYnCVfhnSnNh4MmcMuIgLmYbg= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=schrieb, H*RU:sk:mrelaye, H*r:sk:mrelaye, Hx-spam-relays-external:sk:mrelaye X-HELO: mout.kundenserver.de Subject: Re: Running texconfig breaks backspace in Bash/MinTTY To: cygwin AT cygwin DOT com References: <20160316114546 DOT GO29016 AT dinwoodie DOT org> <56E952E5 DOT 2000205 AT cornell DOT edu> <20160316140012 DOT GP29016 AT dinwoodie DOT org> <56E9769B DOT 5050901 AT cornell DOT edu> From: Thomas Wolff Message-ID: <56E9DA19.4000700@towo.net> Date: Wed, 16 Mar 2016 23:11:37 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <56E9769B.5050901@cornell.edu> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-UI-Out-Filterresults: notjunk:1;V01:K0:+BS4Y3goZ6A=:9R7fCERm2hyNs8EbXcKtpX kUbSulCUXQuVIo4dcePCL9SJPIs4KMQ7jjXyUgbI/GXSq8ZW4Sgz4+0uXXLmHvtrMtB2TO51a FPGAVKcBuznNvapJUFzzUD2huPD3b7l8ikvbepopdx1zDf+WJB7FATEg+Q9ly171PfQT0v1o2 96ggFdcDR/YnCMXvdBO166NT5jMcbK9938NeESpvwBTXTw30m2nCMw+k/JGUPqgSmlJrtwp/q VAZkhmyjq7hb8d0Ack+NNd9HsaPdJJmhsMuD1hmIw/vZuYxOp5ptyWyxK+r7sBW2EBxKaZm4l DqY/VbsMI1zjDetvv3v3Hg3UQI0OjAbfageJIR9g7AjuLAfK8t8p6JpqnT0R7TxJgH08lwk7q +Itib/hNfgGaeFjLCqLbHG6L44MypLhoL3iAjk+Cf7zNGgNcgsXmjpNg/KDQkNO8jQklD02qc sNCebTjEo92ZLj7lqsZAM0Y+dzuO5KTuMvuj0OmiBfsCI8pPk44wR4Cbf4UVKoZ7iKUrAQY/7 odDY9qGQ8J5/lHxLqj77O4Tjznvz6JvArUVh/cn2nlZsCS2E4uwGCa1jt4b3eegpBjurdOxGx qep58iJy5ApxmSgvR8LfUD/c2Xd41AXFa2RksbG6XVpX0tfFdWQpWWLoyFxrdjHlVMrhMnrHD z4MNgYbYkTpyrY3/quZrhiptvxxZETK+3wF8qS/VRAriheMBCCX32YqFKSdAw3fifp127diyj ycXH2hY6yP5qa8A5 X-IsSubscribed: yes Am 16.03.2016 um 16:07 schrieb Ken Brown: > On 3/16/2016 10:00 AM, Adam Dinwoodie wrote: >> 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. > > In the interactive case, texconfig calls texconfig-dialog, which calls > dialog. > >> 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. > > So it appears to be a MinTTY/dialog issue. Checking stty -a before and after texconfig reveals that texconfig mangles the stty erase setting and does not restore it. That is clearly a bug of texconfig. ------ Thomas -- 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