You are not logged in.
Pages: 1
hi everyone,
i'm using ksh and am trying to make the forward-delete key work on the command line but i don't seem to be able to figure it out.
ksh version is Version A 2020.
the contents of my .kshrc file are:
set -o emacs
#bind '\e[3~'=delete-char-forward
#bind '^[[3'=prefix-2
#bind '^[[3~'=delete-char-forward
alias __A=`echo "\020"` # up arrow = ^p = back a command
alias __B=`echo "\016"` # down arrow = ^n = down a command
alias __C=`echo "\006"` # right arrow = ^f = forward a character
alias __D=`echo "\002"` # left arrow = ^b = back a character
alias __H=`echo "\001"` # home = ^a = start of line
alias __Y=`echo "\004"` # end = ^e = end of line
as you can see above, i tried the bind command but it seems incompatible with my version of ksh. i've tried a number of other methods but because i don't understand what the code \020 and other similar portions actually signify. i went through some of the manuals but would appreciate any indication of how i can properly alias any key and function on the command line in ksh.
thanks in advance to everyone as well.
Offline
Using set -o emacs is enough for me to have a working Ctrl+d = Deletes the character under the cursor
Last edited by solskog (2025-08-26 06:58:08)
Offline
Pages: 1