Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Key Bindings in Terminals
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
baigsabeeh
Guru
Guru


Joined: 28 Sep 2005
Posts: 520
Location: North Brunswick, NJ

PostPosted: Tue Nov 20, 2007 11:50 pm    Post subject: Key Bindings in Terminals Reply with quote

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
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Wed Nov 21, 2007 1:34 am    Post subject: Reply with quote

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
View user's profile Send private message
baigsabeeh
Guru
Guru


Joined: 28 Sep 2005
Posts: 520
Location: North Brunswick, NJ

PostPosted: Wed Nov 21, 2007 8:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Wed Nov 21, 2007 9:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
baigsabeeh
Guru
Guru


Joined: 28 Sep 2005
Posts: 520
Location: North Brunswick, NJ

PostPosted: Sun Nov 25, 2007 5:23 pm    Post subject: Reply with quote

The thing is that this just randomly started happening. Everything worked fine before.
_________________
BSD > SysV > Linux
BSD FTW!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum