delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/02/16:10:22

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4C5725E6.7030803@redhat.com>
Date: Mon, 02 Aug 2010 14:09:10 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.1.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: How to inactivate CTRL-S hold in a Mintty bash session or ssh connection
References: <1299EF3181B10F479D85C328013285240331C4D0 AT THEZE DOT intra DOT cea DOT fr>
In-Reply-To: <1299EF3181B10F479D85C328013285240331C4D0@THEZE.intra.cea.fr>
X-IsSubscribed: yes
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

--------------enig5116907F5C68BD409EE6254F
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 08/02/2010 02:05 PM, JOHNER Jean 066030 wrote:
> On 08/02/2010 13:25, Eric Blake wrote:
>>> Hello,
>>>
>>> Typing CTRL-S in a Mintty bash session has the effect of holding it
>>> until CTRL-Q is typed.
>>> It happens that CRTL-S is also the Windows standard for saving a file
>>> (NotePad, WordPad, Office ...) so that it is mapped to :w in my
> .vimrc.
>>>
>>> Is there a way to inactivate this CTRL-S hold in Mintty.
>>
>> Yes - use stty.  For example, my ~/.bash_profile contains:
>>
>> if tty --quiet ; then
>>   stty start undef
>> fi
>=20
> Thank you Eric for this quick answer.
> Are you sure of your syntax. I added the above 3 lines to my
> ~/.bash_profile.
> CTRL-S still results in inactivation of input in a Mintty bash session
> with the bonus that CTRL-Q no longer cures the situation.

I probably swapped 'start' and 'stop' then (my stty line actually remaps
both keys - I find them useful, just not at their default location).
'man stty' for proper details.

--=20
Eric Blake   eblake AT redhat DOT com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig5116907F5C68BD409EE6254F
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJMVyXmAAoJEKeha0olJ0Nqxc8IAKUO79EO29mkFp9bgaoEHcvV
PaB52+QcZZgAdqqLenJY+W9CBXKsyupU/JsC3VDetWaOSj9xibUxgpe/smoO2spI
flmBdTjc4XL/bRtiB4R8zlvE3FQPExcanadzCU2uV3e6g9V4QzIf14DpIDM9EnHz
LDMgjKSrXmyWSI4o4Ttyg8zS9P95KUSJP154SUuivCDwlW2ND/m35kz3tijQ3Tjg
mZDkIEHhfpzso2TfQ1kTv6Xs1dakSdvjaPCcb8pcAHoW5I/QKzU3ZI4YMOXBHtqb
784lvbEPNMNFBy9nesJVcMIc1HEPoDqIkiEI+gR+As33oAr4/5m8IeFmvwKnqg0=
=/dPH
-----END PGP SIGNATURE-----

--------------enig5116907F5C68BD409EE6254F--

- Raw text -


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