Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #239527

Re: Get Terminal to Echo line in buffer on backspace

Path csiph.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!bofh.it!news.nic.it!robomod
From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: Get Terminal to Echo line in buffer on backspace
Date Tue, 31 Aug 2021 16:50:02 +0200
Message-ID <CSdfk-505-15@gated-at.bofh.it> (permalink)
References <CROJX-5U5-1@gated-at.bofh.it> <CROTE-5XB-7@gated-at.bofh.it> <CRR58-7qq-3@gated-at.bofh.it> <CRRya-7A1-7@gated-at.bofh.it> <CScCB-4N1-7@gated-at.bofh.it> <CScMi-4Q9-1@gated-at.bofh.it>
X-Original-To debian-user@lists.debian.org
X-Mailbox-Line From debian-user-request@lists.debian.org Tue Aug 31 14:49:34 2021
Old-Return-Path <pdkcox@cox.net>
X-Amavis-Spam-Status No, score=-6.751 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.25, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
Authentication-Results cox.net; auth=pass (PLAIN) smtp.auth=pdkcox@cox.net
X-Authority-Analysis v=2.4 cv=QYUFAuXv c=1 sm=1 tr=0 ts=612e416b a=Lgkz+srVTlLlCuK1Y0XrAg==:117 a=Lgkz+srVTlLlCuK1Y0XrAg==:17 a=kj9zAlcOel0A:10 a=8ejwkPPOhUul9VRsgpMA:9 a=CjuIK1q_8ugA:10
Reply-To debian-user@lists.debian.org
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.10.1 (2018-07-13)
X-Cmae-Envelope MS4xfIppm58UJajgyTH8cRCRAoJCf/KRCBImzxHkCUDgKkOqreGYzsZ3yH4ltZ4uSUBEoqwTjbeco31cTH/FoBifu7F7+RiZffeigz0XPt5/oo1JG1rs+Zdx oBDobEJKjxat49BPYSP7iadv/PlOc0TVL1q+skxXkvRf8bQyrFTOwoxvPDImWx2SNN/dB3x99N6AAfEBuxaFmgxZUqjRhI/r9fflm/m7IkTk+jxmUeCJ3rEu 9qfrmYtSIUK2U6ql9O8L2rStUI3e/I8iB6fzbfWvonw=
X-Mailing-List <debian-user@lists.debian.org> archive/latest/780218
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/20210831144911.GG5364@axis.corp
Approved robomod@news.nic.it
Lines 31
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Tue, 31 Aug 2021 09:49:12 -0500
X-Original-Message-ID <20210831144911.GG5364@axis.corp>
X-Original-References <11000339-dda5-1cbf-6dd6-502507e21f45@little-beak.com> <YSzSDqxC/2HKRaf1@wooledge.org> <YSzzzdQc8Pck6tqw@phare.normalesup.org> <YSz7ou2JyD0w4se7@wooledge.org> <20210831140748.GC5364@axis.corp> <YS45ILmQecYB2s4r@phare.normalesup.org>
Xref csiph.com linux.debian.user:239527

Show key headers only | View raw


On Tue 31 Aug 2021 at 16:13:52 (+0200), Nicolas George wrote:
> David Wright (12021-08-31):
> > The only useful effect of that binding that I've seen is not when
> > typing ahead, but at the normal command line
> 
> Of course. When typing ahead, your shell's line editor is not in action,
> and therefore its bindings will have no effect immediately. They will
> have an effect when the interactive shell resumes and received the
> keystrokes.
> 
> Before that, you are running with the tty's line editor, and therefore
> its bindings are the one in action. See the output of stty -a.
> 
> The behavior of ttys is one of the trickiest part of Unix's user
> interface, and we are directly dealing with it here. Be sure you
> understand what is going on and who is doing what task; otherwise you
> will be utterly confused.

That seems reasonable. So in summary, ESC 1 ^L gives a clean refresh
of the command line when you're at a shell prompt, and ^R prints the
contents of your typeahead buffer when you're not.

I think that's what the OP /really/ wants. I can see no point in tying
the ^R refresh to the Backspace key: if you rubout four characters,
why would you want four refreshes?

Perhaps, in some way, the OP hasn't got rprnt = ^R listed in their
$ stty -a   output, but that's beyond my knowledge.

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Get Terminal to Echo line in buffer on backspace Thomas Anderson <thomas.anderson@little-beak.com> - 2021-08-30 14:40 +0200
  Re: Get Terminal to Echo line in buffer on backspace Nicolas George <george@nsup.org> - 2021-08-30 14:50 +0200
  Re: Get Terminal to Echo line in buffer on backspace Greg Wooledge <greg@wooledge.org> - 2021-08-30 14:50 +0200
    Re: Get Terminal to Echo line in buffer on backspace Thomas Anderson <thomas.anderson@little-beak.com> - 2021-08-30 15:00 +0200
      Re: Get Terminal to Echo line in buffer on backspace Greg Wooledge <greg@wooledge.org> - 2021-08-30 15:20 +0200
        Re: Get Terminal to Echo line in buffer on backspace songbird <songbird@anthive.com> - 2021-08-31 04:00 +0200
      Re: Get Terminal to Echo line in buffer on backspace Nicolas George <george@nsup.org> - 2021-08-30 17:10 +0200
    Re: Get Terminal to Echo line in buffer on backspace Nicolas George <george@nsup.org> - 2021-08-30 17:10 +0200
      Re: Get Terminal to Echo line in buffer on backspace Greg Wooledge <greg@wooledge.org> - 2021-08-30 17:40 +0200
        Re: Get Terminal to Echo line in buffer on backspace David Wright <deblis@lionunicorn.co.uk> - 2021-08-31 16:10 +0200
          Re: Get Terminal to Echo line in buffer on backspace Nicolas George <george@nsup.org> - 2021-08-31 16:20 +0200
            Re: Get Terminal to Echo line in buffer on backspace David Wright <deblis@lionunicorn.co.uk> - 2021-08-31 16:50 +0200
          Re: Get Terminal to Echo line in buffer on backspace Greg Wooledge <greg@wooledge.org> - 2021-08-31 16:50 +0200
            Re: Get Terminal to Echo line in buffer on backspace David Wright <deblis@lionunicorn.co.uk> - 2021-09-01 16:10 +0200
        Re: Get Terminal to Echo line in buffer on backspace Thomas Anderson <thomas.anderson@little-beak.com> - 2021-09-02 05:50 +0200
          Re: Get Terminal to Echo line in buffer on backspace Greg Wooledge <greg@wooledge.org> - 2021-09-02 15:40 +0200

csiph-web