This topic created in 4544 days ago, the information mentioned may be changed or developed.
不管是ssh连接还是本地xterm,nslookup和openssl都没法使用退格,退格自动变成了^H,打错了命令很麻烦,而且没法更改。。
有什么解决办法呢?
ps, 我记得有些程序,进入命令行打错了命令也是可以删除的,比如asterisk的cli模式。
可删除 / 出现^H这些程序在c中分别用了什么函数去获取stdin?
7 replies • 1970-01-01 08:00:00 +08:00
 |
|
5
tywtyw2002 Dec 30, 2013
tyw@CosHiM-MAC:~|⇒ stty -a speed 9600 baud; 25 rows; 80 columns; lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo -extproc iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel iutf8 -ignbrk brkint -inpck -ignpar -parmrk oflags: opost onlcr -oxtabs -onocr -onlret cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>; eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W;
stty earse ^H
|
 |
|
6
rrfeng Dec 30, 2013
ctrl + backspace 是最简单的。 大部分程序可以吧 readlines 编译进去 实在不行的可以装一个 rlwrap ,用 rlwraq 来启动其他程序
|