You are not logged in.

#1 2009-02-23 22:59:01

NeoXP
Member
From: MS Matrix
Registered: 2009-01-09
Posts: 206
Website

[SOLVED] problem with zsh and urxvt and keybinding

I hope this is the right forum to post this problem, else please move it to the right forum.

I have zsh and urxvt installed and I am quite pleased with it, except for one problem,

When I push the delete button in urxvt I get a ~ instead of deleting the next character. In aterm and xterm I don't have this problem.

I'm sure that there is a way to make the right keybinding for this, but I can't find the solution. Is there someone who can point me in the right direction?

Last edited by NeoXP (2009-02-24 21:00:02)


Arch x86_64 on HP 6820s and on HP nx9420. Registered Linux User 350155, since 24-03-2004
"Everyone said that it could not be done, until someone came along who didn't know that."

Offline

#2 2009-02-24 01:13:06

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: [SOLVED] problem with zsh and urxvt and keybinding

These are my most current bindkeys...

case $TERM in (rxvt*) #urxvt
    bindkey "\e[7~"  beginning-of-line
    bindkey "\e[8~"  end-of-line
esac    
bindkey "^A" beginning-of-line
bindkey "^E" end-of-line
bindkey '^?' backward-delete-char
bindkey "\e[3~" delete-char

Open a terminal, hit ctrl-V, and press delete.  It should print the key generated.  The first ^[ is escaped as \e.

So, on my terminal I see ^[[3~
I put bindkey "\e[3~" delete-char in my ~/.zshrc, and there you go.


Cthulhu For President!

Offline

#3 2009-02-24 20:59:34

NeoXP
Member
From: MS Matrix
Registered: 2009-01-09
Posts: 206
Website

Re: [SOLVED] problem with zsh and urxvt and keybinding

Thxs,

Now it is working just fine.

Problem solved.


Arch x86_64 on HP 6820s and on HP nx9420. Registered Linux User 350155, since 24-03-2004
"Everyone said that it could not be done, until someone came along who didn't know that."

Offline

Board footer

Powered by FluxBB