learner
24th December 2004, 09:47
hello,

I am working on baan 5b with sun solaris as O/S , now i am on shell prompt i.e. KSH, I am facing 1 very small problems related with O/S

Lets say i typed in 1 command at shell

CLEAD

instead of CLEAR

Now if i am trying to delete one charatcer by pressing backspace, my prompt shows ^H as character instead of deleting that character. How do i achieve this deleting a character


Regards

Learner

Han Brinkman
24th December 2004, 10:15
stty erase <your backspace key>

learner
24th December 2004, 10:22
Hi,

Thanks for the same.

Regards

Learner

learner
24th December 2004, 10:48
Hello,

and lastly how do i set my Keyboard arrow keys to repeat the commands ?

My shell is KSH and i am using command 'r' to repat the command , but how do i achieve the same thing using arrow keys from keyboard ?

Regards

Learner

Dikkie Dik
24th December 2004, 15:32
Learner,

set -o emacs
alias __A=`echo "\020"` # up arrow = ^p =
alias __B=`echo "\016"` # down arrow = ^n
alias __C=`echo "\006"` # right arrow = ^f
alias __D=`echo "\002"` # left arrow = ^b

does the thing you requested, but I prefer the "set -o vi" and use all vi commands like:
<ESC> k - for retrieving previous command(s)
v - to start vi editor to edit command(s)
/<string> - to start seach in history for commands with <string>

Hope this helps,
Dick

sanjayroongta
25th December 2004, 08:48
Hi Brinkman


stty erase <your backspace key>

where to be set above value pls.

rgds

Han Brinkman
27th December 2004, 10:34
You can put the command in your .profile, so it will be executed each time you login.