Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #239527
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Get Terminal to Echo line in buffer on backspace |
| Date | 2021-08-31 16:50 +0200 |
| Message-ID | <CSdfk-505-15@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <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> |
| Organization | linux.* mail to news gateway |
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
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