You are not logged in.

#1 2010-05-02 01:47:22

josh000
Member
Registered: 2010-04-05
Posts: 37

URXVT and backspace

I have a problem with backspace in URXVT. This happens when using zsh, but it may happen in any shell as well

Basically, certain times when I wish to change a command and use backspace to remove part of it, artifacts will be left behind, and the cursor will not be where I expect meaning I type something I did not intend to.

I have not been able to find any information on this, except a two post thread on the mailing list in September 09, where the author says urxvt is behaving exactly as it should. other terminals don't have this problem, so that doesn't seem quite right, although I am not even sure if that was the same problem as I am having.

I have screenshots which hopefully show what I mean here:

urxvt.th.jpg

urxvt2.th.jpg

Last edited by josh000 (2010-05-02 01:50:18)

Offline

#2 2010-05-03 02:56:52

josh000
Member
Registered: 2010-04-05
Posts: 37

Re: URXVT and backspace

OK, I think I have isolated this, it only occurs if i write past the end of a line onto a new line....

Does no one else experience this?

Offline

#3 2010-05-03 05:29:27

josh000
Member
Registered: 2010-04-05
Posts: 37

Re: URXVT and backspace

OK, I have narrowed this down to a zsh problem with the interactive shell.

Using a zsh interactive shell on a VT also has glitches, but not as bad.

Any ideas on what this is?

Offline

#4 2010-05-03 07:52:35

Ogion
Member
From: Germany
Registered: 2007-12-11
Posts: 367

Re: URXVT and backspace

For me urxvt+zsh works perfectly fine. Maybe copy your .zshrc somewhere else and use a vanilla zsh and see if the problem still occurs.

Ogion


(my-dotfiles)
"People willing to trade their freedom for temporary security deserve neither and will lose both." - Benjamin Franklin
"Enlightenment is man's leaving his self-caused immaturity." - Immanuel Kant

Offline

#5 2010-05-03 18:01:30

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: URXVT and backspace

bindkey '^?' backward-delete-char


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#6 2010-05-03 18:20:48

ddaedalus
Member
Registered: 2008-01-14
Posts: 54

Re: URXVT and backspace

josh000 wrote:

OK, I have narrowed this down to a zsh problem with the interactive shell.

Bash, while writing past current line. Same problem. I don't thing its a problem with only zsh and urxvt.

Offline

#7 2010-05-04 02:34:17

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: URXVT and backspace

Do you have any non-printing chars in your PS1?

Offline

#8 2010-05-05 09:09:58

ddaedalus
Member
Registered: 2008-01-14
Posts: 54

Re: URXVT and backspace

Nope, i didn't even change my PS1 :S

Offline

#9 2010-05-05 10:36:31

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: URXVT and backspace

See what I wrote in my previous posts. The line is for zsh, but you can do something similar in bash by using ~/.inputrc  (the syntax is sligthy different tho)

Edit:
for bash:
"\e[3~": delete-char
#or
"\C-?": delete-char

Edit2:
This ofcourse requires the TERM to be set correctly. It should be rxvt-unicode or rxvt-256color  depending on if you used the patched version or not.

Last edited by Mr.Elendig (2010-05-05 10:40:02)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#10 2010-05-06 09:41:05

ddaedalus
Member
Registered: 2008-01-14
Posts: 54

Re: URXVT and backspace

Both values are set correctly.

Since this behaviour is rather erratic, i assume that it is a bug in rxvt or bash. Not a configuration issue.

OTOH it does not really bother me. Still thx for your help wink

Offline

Board footer

Powered by FluxBB