del in csh

Hello!

Maybe some of you have encountered a problem of the DEL key in csh.
Without magic string
"bindkey "^[[3~" delete-char"
in ~/.cshrc DEL button produce "~" on the screen

even in FAQ https://docs.freebsd.org/en/books/faq/ was mentioned about this problem.

I just want to ask simple questions:
1. why csh doesn't have builtin support of DEL button?
2. is there some secret\magic about this button?
3. why default template .cshrc doesn't have magic string?

It's like csh developers like to make some difficulties for end users)
At the same time I'm glad and want to thank them that I don't need to google and write other magic strings in .cshrc for keys ENTER, SHIFT, CTRL and etc... :-)
 
Code:
    if ( $?tcsh ) then
        bindkey "^W" backward-delete-word
        bindkey -k up history-search-backward
        bindkey -k down history-search-forward
        bindkey "\e[3~" delete-char
    endif
 
These two are also useful, they make the <home> and <end> keys work as expected.
Code:
bindkey "^[[1~" beginning-of-line
bindkey "^[[4~" end-of-line

Many of these keys are also depending on the terminal emulator you're using. In PuTTY for example, under Terminal -> Keyboard.
 
Back
Top