Re: readling, ctrl-u is not working like linux console

2019-10-17 Thread Roland Hieber
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

Re: readling, ctrl-u is not working like linux console

2019-10-16 Thread duhuanpeng
> > In some shells, like mksh, the default behaviour of ctrl-u is to kill the > whole line. But then it's not called unix-line-discard, and I don't think > mksh uses readline, either. The "standard" is probably just readline, though > it makes me wonder where the "unix" came from… Hi, to avoid

Re: readling, ctrl-u is not working like linux console

2019-10-16 Thread Robert Karszniewicz
On 10/16/19 10:57 AM, Roland Hieber wrote: On Wed, Oct 16, 2019 at 04:57:45AM +0800, duhuanpeng wrote: Hi, I find it the barebox console's ctrl-u is not working like my linux host. for now, the barebox's ctrl-u discard the whole line. but the linux consle just remove characters before cursor.

Re: readling, ctrl-u is not working like linux console

2019-10-16 Thread duhuanpeng
> > 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. 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

Re: readling, ctrl-u is not working like linux console

2019-10-16 Thread Ulrich Ölmann
On Wed, Oct 16 2019 at 10:57 +0200, Roland Hieber wrote: > On Wed, Oct 16, 2019 at 04:57:45AM +0800, duhuanpeng wrote: >> Hi, >> >> I find it the barebox console's ctrl-u is not working like my >> linux host. >> for now, the barebox's ctrl-u discard the whole line. but the >> linux consle just

Re: readling, ctrl-u is not working like linux console

2019-10-16 Thread Roland Hieber
On Wed, Oct 16, 2019 at 04:57:45AM +0800, duhuanpeng wrote: > Hi, > > I find it the barebox console's ctrl-u is not working like my > linux host. > for now, the barebox's ctrl-u discard the whole line. but the > linux consle just remove characters before cursor. > is the barebox ctrl-u follows

readling, ctrl-u is not working like linux console

2019-10-15 Thread duhuanpeng
Hi, I find it the barebox console's ctrl-u is not working like my linux host. for now, the barebox's ctrl-u discard the whole line. but the linux consle just remove characters before cursor. is the barebox ctrl-u follows any standard, if not, how about make it just works like linux(ah, it is gnu