From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jack Kamm Newsgroups: gmane.emacs.bugs Subject: bug#24964: 25.1; Backspace inside term/ansi-term on OSX Date: Wed, 30 Nov 2016 10:57:37 +0000 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114d8b22ac64940542829202 X-Trace: blaine.gmane.org 1480503499 17437 195.159.176.226 (30 Nov 2016 10:58:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 30 Nov 2016 10:58:19 +0000 (UTC) Cc: 24964@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 30 11:58:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cC2ab-0003Qd-1I for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Nov 2016 11:58:13 +0100 Original-Received: from localhost ([::1]:42754 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cC2ae-0004p0-RC for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Nov 2016 05:58:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cC2aV-0004op-Ti for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2016 05:58:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cC2aR-0008J0-M2 for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2016 05:58:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59818) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cC2aR-0008Is-IB for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2016 05:58:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cC2aP-00014l-Mn for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2016 05:58:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jack Kamm Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Nov 2016 10:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24964 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24964-submit@debbugs.gnu.org id=B24964.14805034654114 (code B ref 24964); Wed, 30 Nov 2016 10:58:01 +0000 Original-Received: (at 24964) by debbugs.gnu.org; 30 Nov 2016 10:57:45 +0000 Original-Received: from localhost ([127.0.0.1]:46984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cC2a8-00014H-Rv for submit@debbugs.gnu.org; Wed, 30 Nov 2016 05:57:45 -0500 Original-Received: from mail-yw0-f181.google.com ([209.85.161.181]:35925) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cC2a7-000143-5O for 24964@debbugs.gnu.org; Wed, 30 Nov 2016 05:57:43 -0500 Original-Received: by mail-yw0-f181.google.com with SMTP id a10so154919733ywa.3 for <24964@debbugs.gnu.org>; Wed, 30 Nov 2016 02:57:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=rvVQndwy1sx/KT6xhI378k6Myr512Ku6sAKeXXqidic=; b=Hu1j+FVXb7i0hXlAbKX/saFaqXka2PVEDZOK3O2quK6cKI8DPsnuBJX3GCGT76+gi4 OMyXmt/QnctnVFHklvIDCnfrD1VQG0W8samyM7sGw3TxnmviakDmlxPM1tzqX7dcthfz nEVHNirYnSBRgT5FgFXSUlNJRiD3MjFmFJrr0F09pzurb8cvIWnynVqJLzomfpH1hUsL 72yN/VFiOIef1az6+yHOcA6IGEuaQwj8Gzz4NhJJT2WvR9sMPlRSqsFcG8DoXMUZ9YSq ThwgAWy4gvjU0TKNDnAs+8Gg4TFeGEVn1ppkkWrf0gTj5I05LbCQ7n+5CuycUTGMTH+d LdMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=rvVQndwy1sx/KT6xhI378k6Myr512Ku6sAKeXXqidic=; b=AWU6SmvKAUEXp2MPmbj4mThMA4VxdkT36OaegLZ7RQujzKmVCjUQToT3SwgmASSZ7b FPVt6zYIB5RFPxxVvXCQvkZy0MLm4VBtEkOBWJEJH3RBKOtixRzT05evtEVHbxwYYXSl qK7S2I00t6pjVldFDF2RpRetLwFNqGj/yP9KkmhMyFWcFbDLQXK62maAUiQZCdwjLZWl CuLwmBcLALkzG5f31JkiXzfFB+tuYYPdEPLKeW1qc7SD0gwe3Vj/xNOk7UV4cS7hQ96z XvwvV601OInNG4Ob6D7KacTOjA5YRTVIh1ZbtXec4CM7l061EOOHFziMzehabO85/C1p cGbA== X-Gm-Message-State: AKaTC015TmztMCwO00dUTxEWqIjCqEiSlnWCcqwy5K0xsKSOCbJmzYsKCgbYb6uRexofR0Fe5GeNqK73P2tB/w== X-Received: by 10.129.74.65 with SMTP id x62mr35132573ywa.59.1480503457504; Wed, 30 Nov 2016 02:57:37 -0800 (PST) Original-Received: by 10.129.45.3 with HTTP; Wed, 30 Nov 2016 02:57:37 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:126299 Archived-At: --001a114d8b22ac64940542829202 Content-Type: text/plain; charset=UTF-8 Yes, this is the same bug. I think it is due to weird shell initialization in macOS -- it seems like the setting of erase key in TERMINFO and TERMCAP gets ignored. For now I just manually set 'stty ek' in my .zshrc/.bashrc if TERM == eterm-color. On Sun, Nov 27, 2016 at 4:55 PM, Alan Third wrote: > Jack Kamm writes: > > > On OSX, interactive programs in multi-term/ansi-term/term will insert > > the character "^?" instead of doing a backspace. > > > > Note that simply typing backspace on the command prompt works > > fine, it is only inside an interactive program (such as less > > or vim) that it breaks. > > > > To reproduce this, start emacs -Q, start ansi-term, > > type "echo foobar | less", type "/", start entering some text, > > and then hit backspace a few times. Instead of deleting > > the text, it will insert "^?" characters. > > This looks like it might be related to bug#5331: > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=5331 > -- > Alan Third > --001a114d8b22ac64940542829202 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Yes, this is the same bug. I think it is due to weird shel= l initialization in macOS -- it seems like the setting of erase key in TERM= INFO and TERMCAP gets ignored. For now I just manually set 'stty ek'= ; in my .zshrc/.bashrc if TERM =3D=3D eterm-color.

On Sun, Nov 27, 2016 at 4:55 PM,= Alan Third <alan@idiocy.org> wrote:
Jack Kamm <jackkamm@gmail= .com> writes:

> On OSX, interactive programs in multi-term/ansi-term/term will insert<= br> > the character "^?" instead of doing a backspace.
>
> Note that simply typing backspace on the command prompt works
> fine, it is only inside an interactive program (such as less
> or vim) that it breaks.
>
> To reproduce this, start emacs -Q, start ansi-term,
> type "echo foobar | less", type "/", start enterin= g some text,
> and then hit backspace a few times. Instead of deleting
> the text, it will insert "^?" characters.

This looks like it might be related to bug#5331:

https://debbugs.gnu.org/cgi/bugreport.cgi?b= ug=3D5331
--
Alan Third

--001a114d8b22ac64940542829202--