From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Backspace
Date: Wed, 20 Jun 2012 18:05:00 -0000 [thread overview]
Message-ID: <4FE210E7.6070707@cygwin.com> (raw)
In-Reply-To: <jrsqk5$n02$1@dough.gmane.org>
On 6/20/2012 11:35 AM, Andrew DeFaria wrote:
> Have you ever had the backspace key not go backward on character erasing the
> previous character in Windows programs? Neither have I.
>
> This has been bothering me for a while so... I have properly set stty erase
> ^h and from the bash command line backspace works as expected. But I often
> find places where this setting is not honored. I have an example. If I type
> less <filename> and at the less prompt I type "/' to find a string, but then
> make a mistake and hit backspace I get ^? instead. But ^h works. Why? Even
> the man page for less says that backspace is supposed to delete the
> character to the left of the cursor but instead I just get ^?.
I see the same thing if I set stty erase (in bash) as you did and start a
new shell (bash again) from it. Of course, the parent shell outputs ^? for
any press of backspace. This behavior is the same for bash started from a
command prompt and from mintty.
Beyond personal preference, is there a reason that you don't just take the
default (i.e. don't set stty erase)? That works for me.
--
Larry
_____________________________________________________________________
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
--
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
next prev parent reply other threads:[~2012-06-20 18:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-20 15:36 Backspace Andrew DeFaria
2012-06-20 18:05 ` Larry Hall (Cygwin) [this message]
2012-06-21 0:07 ` Backspace Andrew DeFaria
2012-06-21 2:06 ` Backspace Larry Hall (Cygwin)
2012-06-21 5:27 ` Backspace Andrew DeFaria
2012-06-21 9:08 ` Backspace Corinna Vinschen
2012-06-21 15:58 ` Backspace Andrew DeFaria
2012-06-21 16:10 ` Backspace Ryan Johnson
2012-06-21 18:56 ` Backspace Andrew DeFaria
2012-06-21 20:07 ` Backspace Earnie Boyd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FE210E7.6070707@cygwin.com \
--to=reply-to-list-only-lh@cygwin.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).