From: Roland Hieber <rhi@pengutronix.de>
To: barebox@lists.infradead.org, r.karszniewicz@phytec.de
Subject: Re: readling, ctrl-u is not working like linux console
Date: Thu, 17 Oct 2019 10:54:21 +0200 [thread overview]
Message-ID: <20191017085421.6oobfdtkzog4b4mc@pengutronix.de> (raw)
In-Reply-To: <20191016134705.GA19851@router.tkernel.org>
On Wed, Oct 16, 2019 at 09:47:05PM +0800, duhuanpeng wrote:
> >
> > FWIW, in bash on both my tty2 and urxvt, Ctrl-U clears the whole line.
>
> did you try to move your cursor in the middle of a line.
Ah, I misread your first mail. Yes, my bash only discards characters
before the cursor until the start of the line.
- Roland
>
> I guess my bash use this keybinds:
>
> [1] https://www.gnu.org/software/bash/manual/bash.html#Bindable-Readline-Commands
>
> 8.4.4 Killing And Yanking
> kill-line (C-k)
> Kill the text from point to the end of the line.
>
> backward-kill-line (C-x Rubout)
> Kill backward from the cursor to the beginning of the current line.
>
> unix-line-discard (C-u)
> Kill backward from the cursor to the beginning of the current line.
>
> kill-whole-line ()
> Kill all characters on the current line, no matter where point is. By default, this is unbound.
>
>
> Regards,
> duhuanpeng
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Roland Hieber | r.hieber@pengutronix.de |
Pengutronix e.K. | https://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2019-10-17 8:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-15 20:57 duhuanpeng
2019-10-16 8:57 ` Roland Hieber
2019-10-16 9:14 ` Ulrich Ölmann
2019-10-16 13:47 ` duhuanpeng
2019-10-17 8:54 ` Roland Hieber [this message]
2019-10-16 15:01 ` Robert Karszniewicz
2019-10-16 15:33 ` duhuanpeng
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=20191017085421.6oobfdtkzog4b4mc@pengutronix.de \
--to=rhi@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=r.karszniewicz@phytec.de \
/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