X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG45,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <20100411122809.GO28908@calimero.vinschen.de> References: <20100410140811 DOT GA8593 AT ednor DOT casa DOT cgf DOT cx> <20100410161626 DOT GA1904 AT ednor DOT casa DOT cgf DOT cx> <20100410173607 DOT GA3986 AT ednor DOT casa DOT cgf DOT cx> <20100410181700 DOT GA7321 AT ednor DOT casa DOT cgf DOT cx> <20100411093305 DOT GN28908 AT calimero DOT vinschen DOT de> <20100411122809 DOT GO28908 AT calimero DOT vinschen DOT de> Date: Sun, 11 Apr 2010 15:47:32 +0100 Received: by 10.239.193.6 with SMTP id g6mr218085hbi.212.1270997252784; Sun, 11 Apr 2010 07:47:32 -0700 (PDT) Message-ID: Subject: Re: 1.7.3: Backspace key not working in GNU screen. From: Andy Koppe To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Corinna Vinschen: > I think I see what you mean now. =C2=A0The c_cc[VERASE] value is the one > which is expected for the VERASE functionality (unless it's set to > 0 =3D=3D _POSIX_VDISABLE), but it has nothing to do with the actual setti= ng > of the backspace key in the terminal. =C2=A0So, actually the key value sh= ould > not be stored in c_cc[VERASE] at all, and it should not be possible to > set the value returned by the backspace key via tcsetattr. True, because someone might want to use a completely different key for VERASE. The case I had in mind though was the user setting 'stty erase ^H', to get ^H as the backspace keycode, but then finding that it would send ^? again when in screen, even though 'stty -a' would still show ^H. Anyways ... > So, what we really need to implement is what you proposed. =C2=A0I prepar= ed > a patch, see below. =C2=A0It seems to work nicely and you can easily swit= ch > the backspace character now via the DECBKM escape codes. Nice. The patch looks good to me, and I agree DECBKM is a better solution than a CYGWIN option, because it's standard and because it can be used in remote scripts. Andy -- 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