You are not logged in.
Hey there,
I recently switched to urxvt (because shift+W in the neo-keyboard layout resulted in pasting stuff in xterm).
Now, when I log on to my server, controlkeys like, delete, arrows and similar wont get rendered correctly.
An example what this means:
writing 123<delete><delete><delete>abc result in
123 abc
but the command being executed is as desired
abc
This was under zsh -f (which I think means, no config was loaded?)
On my local system this problem is not existant.
It works again when i try it in xterm or when i start bash instead of zsh.
Any suggestions?
--Marenz
Last edited by Marenz (2009-05-20 09:59:36)
Offline
I had a similar problem with home/end/insert/delete, which was solved by adding these rules to my .zshrc:
##Set some keybindings
###############################################
typeset -g -A key
bindkey '^?' backward-delete-char
bindkey '^[[7~' beginning-of-line
bindkey '^[[5~' up-line-or-history
bindkey '^[[3~' delete-char
bindkey '^[[8~' end-of-line
bindkey '^[[6~' down-line-or-history
bindkey '^[[A' up-line-or-search
bindkey '^[[D' backward-char
bindkey '^[[B' down-line-or-search
bindkey '^[[C' forward-char
bindkey '^[[2~' overwrite-mode
#################################################
(Add it towards the end of the file).
The symbols in the '' are found by hitting control+v (this may only work for urxvt) and then the desired key (so '^?' is found by hitting control+v then backspace, and it will return ^?, which you then add to the keybindings).
Also, backward-char and forward-char, along with the up and down lines, are the arrow keys.
Last edited by lswest (2009-04-24 05:55:43)
Lswest <- the first letter of my username is a lowercase "L".
"...the Linux philosophy is "laugh in the face of danger". Oops. Wrong one. "Do it yourself". That's it." - Linus Torvalds
Offline
Thanks for the reply. Unfortunly you suggestion didn't fix my problem
I may should add that this problem happens when I am ssh-ing into my server.
--Marenz
Offline
which zshrc did you change? (if you use zsh on the server that is).
Otherwise I'm not sure where the problem could lie.
Lswest <- the first letter of my username is a lowercase "L".
"...the Linux philosophy is "laugh in the face of danger". Oops. Wrong one. "Do it yourself". That's it." - Linus Torvalds
Offline
the ~/.zshrc file
--Marenz
Offline
Same problem here, when starting urxvt sometimes it will do as you described like pressing tab will actually insert a tab but the command will be completed when actually pressing enter.
I just press enter everytime I start urxvt now just to be sure
Offline
the ~/.zshrc file
--Marenz
What shell are you using on the server? If it's also zsh, I'd try adding the keybindings there as well.
@chimpyw:
I have the same problem, but for me if you hit tab even if it doesn't display it still auto-completes when you hit enter, so I haven't bothered figure out a fix for that. If you find an answer please let me know.
Lswest <- the first letter of my username is a lowercase "L".
"...the Linux philosophy is "laugh in the face of danger". Oops. Wrong one. "Do it yourself". That's it." - Linus Torvalds
Offline
The problem is only on the server, not local, of course its zsh there, thats what the whole topic is about. I've put the keybindings only there, as local everything works
--Marenz
Offline
Same problem here, when starting urxvt sometimes it will do as you described like pressing tab will actually insert a tab but the command will be completed when actually pressing enter.
I just press enter everytime I start urxvt now just to be sure
I have this same issue and have had the issue for quite some time. I wonder if it's a terminfo problem.
Last edited by rson451 (2009-04-27 14:27:05)
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
The problem is only on the server, not local, of course its zsh there, thats what the whole topic is about. I've put the keybindings only there, as local everything works
--Marenz
The way I understood it was that you had applied the keybindings to the .zshrc on your local host, my misunderstanding, sorry. Did you source the .zshrc file or reboot after making changes? I think it's required for the shell to load the new keybindings.
Lswest <- the first letter of my username is a lowercase "L".
"...the Linux philosophy is "laugh in the face of danger". Oops. Wrong one. "Do it yourself". That's it." - Linus Torvalds
Offline
I just executed another zsh instance after the changes. Usually they are applied after that. I just tried sourcing it, made no change.
--Marenz
Offline
I just executed another zsh instance after the changes. Usually they are applied after that. I just tried sourcing it, made no change.
--Marenz
Then I'm out of ideas, sorry.
Lswest <- the first letter of my username is a lowercase "L".
"...the Linux philosophy is "laugh in the face of danger". Oops. Wrong one. "Do it yourself". That's it." - Linus Torvalds
Offline
Anymore thoughts on this?
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
If it's only happening on the first line in a new shell, then it is a known bug. If it's happening all the time, then it sounds like something is really buggy on your box
Edit: if it's only happening on the first line, simply pressing enter once will "solve" it.
Last edited by Mr.Elendig (2009-05-05 13:27:41)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Known bug is what I wanted to hear. Thanks IRC god.
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
Known bug is what I wanted to hear. Thanks IRC god.
Havn't seen anyone come up with a real fix yet, and the problem have been around for ages
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
I seem to remember this bug only showing up after I had set up a custom prompt, and assumed precmd or preexec was responsible, but it was probably happening before and I just hadn't noticed it.
Offline
I seem to remember this bug only showing up after I had set up a custom prompt, and assumed precmd or preexec was responsible, but it was probably happening before and I just hadn't noticed it.
For me it only seems to be happening since I started using a multi-line script, before I was merely using the right and left prompts, without issue.
Lswest <- the first letter of my username is a lowercase "L".
"...the Linux philosophy is "laugh in the face of danger". Oops. Wrong one. "Do it yourself". That's it." - Linus Torvalds
Offline
HashBox wrote:I seem to remember this bug only showing up after I had set up a custom prompt, and assumed precmd or preexec was responsible, but it was probably happening before and I just hadn't noticed it.
For me it only seems to be happening since I started using a multi-line script, before I was merely using the right and left prompts, without issue.
Actually you're right this would've been when it appeared for me also.
Offline
I'm using a standard User@Host PWD$ prompt and I get this, however I do have some tricky stuff in precmd and preexec. I'll play with it some tonight and see if i can work it out.
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
I finally got it fixed! s4msungs tip to try aur/rxvt-unicode-256color did it!
Using the aur package made all problems disappear.
I guess this must be a bug in the arch package then...
--Marenz
Offline
I wouldn't be so quick to say that, I've been running rxvt-unicode-256color with afterimage support and as far as I can see the problem still exists, can anyone else confirm either way?
Offline
I too use aur/rxvt-unicode-256color and the problem exists for me.
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
Try setting your TERM to xterm instead of rxvt
(e.g. add "Mrxvt.termName: xterm" to your ~/.mrxvtrc)
See the following for more:
http://www.mail-archive.com/materm-deve … 00071.html
Last edited by rephorm (2009-06-05 07:24:10)
Offline
Try setting your TERM to xterm instead of rxvt
(e.g. add "Mrxvt.termName: xterm" to your ~/.mrxvtrc)
Many thanks for this tip! It works just fine for me with urxvt.
There's no place like ::1
Offline