2017-02-22 13:22 GMT+08:00 <[email protected]>: > 2017-02-22 0:45 GMT+08:00 Pierre Labastie <[email protected]>: >> On 21/02/2017 16:20, xinglp wrote: >>> >>> When I press 'Ctrl+C' the process not stop. >>> When I press BackSpace key, there are more blank appeared. >>> What did I missed? >>> Thanks. >> >> Not sure, but I think those keys are not interpreted directly by /bin/bash, >> but are converted by the terminal. You may want to look at the command >> "stty". Something like "stty erase ^H" could do. You can display the >> settings with "stty -a". Of course, as the others have said while I was > stty erase ^H make the backspace key behave worse. > > stty -a output: > bash-4.4# stty -a > speed 9600 baud; rows 0; columns 0; line = 0; > intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; > eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; > werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0; > -parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts > -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff > -iuclc -ixany -imaxbel -iutf8 > opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 > ff0 > isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt > echoctl echoke -flusho -extproc > >> writing: Look at the bootscripts... > I didn't see any thing relate to console done by bootscript, I think > maybe agetty did the real work. Archlinux has no such issue, it use busybox' ash as shell than bash. Replace bash with busybox in my initramfs also fix this issue. >> >> Pierre >> >> -- >> http://lists.linuxfromscratch.org/listinfo/lfs-support >> FAQ: http://www.linuxfromscratch.org/blfs/faq.html >> Unsubscribe: See the above information page >> >> Do not top post on this list. >> >> A: Because it messes up the order in which people normally read text. >> Q: Why is top-posting such a bad thing? >> A: Top-posting. >> Q: What is the most annoying thing in e-mail? >> >> http://en.wikipedia.org/wiki/Posting_style -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
