M**********n 发帖数: 432 | 1 Could somebody help me on this problem.
I am telneting to a SUN machine with ssh. I could not access the command
history by pressing the upwoard key as I normally do in Linux. In fact every
time when I press the upwoard key, the following characters show up: "^[[A
".
Somebody know how to resolve this problem?
Thanks! | B******e 发帖数: 48 | 2 I don't like moving cursor around using arrows.
you can set emacs way to move cursor by "set -o emacs"
few examples:
previous command: Ctrl+p
next command: Ctrl+n
search history: Ctrl+r
in-place editing: Ctrl+f, Ctrl+b, Ctrl+d,Ctrl+k ...
every
[A
【在 M**********n 的大作中提到】 : Could somebody help me on this problem. : I am telneting to a SUN machine with ssh. I could not access the command : history by pressing the upwoard key as I normally do in Linux. In fact every : time when I press the upwoard key, the following characters show up: "^[[A : ". : Somebody know how to resolve this problem? : Thanks!
| B******e 发帖数: 48 | 3 btw, your original problems seems to be related to settings of terminal type.
the client is sending a sequence representing "up arrow" but not understood
by the server side.
^[
【在 B******e 的大作中提到】 : I don't like moving cursor around using arrows. : you can set emacs way to move cursor by "set -o emacs" : few examples: : previous command: Ctrl+p : next command: Ctrl+n : search history: Ctrl+r : in-place editing: Ctrl+f, Ctrl+b, Ctrl+d,Ctrl+k ... : : every : [A
| c****j 发帖数: 258 | 4 seems you are using bourn shell,
use ESC then the vi commands to move cursor among histories (j,k) or
position
(h,l), and other commands (x-delete, i-insert ....)
every
[A
【在 M**********n 的大作中提到】 : Could somebody help me on this problem. : I am telneting to a SUN machine with ssh. I could not access the command : history by pressing the upwoard key as I normally do in Linux. In fact every : time when I press the upwoard key, the following characters show up: "^[[A : ". : Somebody know how to resolve this problem? : Thanks!
| t*****g 发帖数: 1275 | 5 bash? try ctril+r
every
[A
【在 M**********n 的大作中提到】 : Could somebody help me on this problem. : I am telneting to a SUN machine with ssh. I could not access the command : history by pressing the upwoard key as I normally do in Linux. In fact every : time when I press the upwoard key, the following characters show up: "^[[A : ". : Somebody know how to resolve this problem? : Thanks!
|
|