Apr 26, 2012 #1 ddrillich Technical User Joined Jun 11, 2003 Messages 546 Location US Good Day, When pressing the backspace key, ^? is displayed. What can I do to get the expected behavior? Regards, Dan
Good Day, When pressing the backspace key, ^? is displayed. What can I do to get the expected behavior? Regards, Dan
Apr 26, 2012 Thread starter #2 ddrillich Technical User Joined Jun 11, 2003 Messages 546 Location US All, stty erase 'Press backspace' does it. How do I do it for the up and down arrows? Regards, Dan Upvote 0 Downvote
Apr 27, 2012 1 #3 SamBones Programmer Joined Aug 8, 2002 Messages 3,186 Location US What shell are you using? In the Korn shell you can issue these commands... Code: # Set-up keyboard arrow keys to function like arrow keys (up,down,left,right) alias __A=^P alias __B=^N alias __C=^F alias __D=^B set -o emacs ...and it will enable command line recall and editing with the arrow keys. It basically makes the Korn shell act like bash command line editing. Note, the ^P is actually Ctrl-P, ^N is Ctrl-N, etc. Upvote 0 Downvote
What shell are you using? In the Korn shell you can issue these commands... Code: # Set-up keyboard arrow keys to function like arrow keys (up,down,left,right) alias __A=^P alias __B=^N alias __C=^F alias __D=^B set -o emacs ...and it will enable command line recall and editing with the arrow keys. It basically makes the Korn shell act like bash command line editing. Note, the ^P is actually Ctrl-P, ^N is Ctrl-N, etc.
Apr 27, 2012 Thread starter #4 ddrillich Technical User Joined Jun 11, 2003 Messages 546 Location US Thank you Sam. I was using the Korn shell. Switching to bash makes sense. Regards, Dan Upvote 0 Downvote