View previous topic :: View next topic |
Author |
Message |
baigsabeeh Guru
Joined: 28 Sep 2005 Posts: 520 Location: North Brunswick, NJ
|
Posted: Tue Nov 20, 2007 11:50 pm Post subject: Key Bindings in Terminals |
|
|
The home, delete, and end keys don't work properly or at all in xterm, screen, and Xfce Terminal. Is anybody experiencing issues like this? This just started happening. If it helps, I'm using zsh, but I doubt that has anything to do with it. _________________ BSD > SysV > Linux
BSD FTW! |
|
Back to top |
|
|
avx Advocate
Joined: 21 Jun 2004 Posts: 2152
|
Posted: Wed Nov 21, 2007 1:34 am Post subject: |
|
|
Have you tried mapping the wished keys in your .zshrc? Something like Code: | bindkey '\e[1~' beginning-of-line | ? You can get the codes for your keys in zsh by pressing C-V (Control+V) followed by the wished key. The zsh-internal commands like "beginning-of-line" can be found in zsh's manpage.
hth,
ph |
|
Back to top |
|
|
baigsabeeh Guru
Joined: 28 Sep 2005 Posts: 520 Location: North Brunswick, NJ
|
Posted: Wed Nov 21, 2007 8:05 pm Post subject: |
|
|
I've done key bindings already. Ok, the key bindings have started working in xterm and screen. I don't know why they won't in Xfce4 Terminal.
What's weird is that running screen in Xfce4 Terminal causes the keys to work again! _________________ BSD > SysV > Linux
BSD FTW! |
|
Back to top |
|
|
avx Advocate
Joined: 21 Jun 2004 Posts: 2152
|
Posted: Wed Nov 21, 2007 9:28 pm Post subject: |
|
|
It may be that different terminals use different keycodes - if that's your case, you could write a function to check what term zsh is launched in and then let the function bind the keys as needed. |
|
Back to top |
|
|
baigsabeeh Guru
Joined: 28 Sep 2005 Posts: 520 Location: North Brunswick, NJ
|
Posted: Sun Nov 25, 2007 5:23 pm Post subject: |
|
|
The thing is that this just randomly started happening. Everything worked fine before. _________________ BSD > SysV > Linux
BSD FTW! |
|
Back to top |
|
|
|