Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Key bindings not working under screen
- X-seq: zsh-users 15801
- From: Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Key bindings not working under screen
- Date: Tue, 15 Feb 2011 11:55:01 +0100
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hello,
I would like to ask for assistance trying to solve a problem with zsh
under screen where key bindings are not working (for instance
"bindkey '^[-' copy-prev-shell-word" in .zshrc).
This is the problem: in my .zshrc (and .bashrc) I set editor variables
to JED (if installed) or to Vim:
#
type jed &> /dev/null && DEFAULT_EDITOR=jed || DEFAULT_EDITOR=vim
export EDITOR=$DEFAULT_EDITOR \
VISUAL=$DEFAULT_EDITOR
#
On systems where JED is not installed (-> DEFAULT_EDITOR=vim) I can
observe this:
% bindkey | wc -l
147
% bindkey | grep copy-prev-shell-word
"^[-" copy-prev-shell-word
% screen
% bindkey | wc -l
131
% bindkey | grep copy-prev-shell-word
%
I've renamed my .screenrc but the issue remains. Interestingly it only
happens when I set $EDITOR *and* $VISUAL in .zshrc, only under screen
and only with zsh (not bash).
Can someone shed some light about the connection between $EDITOR,
$VISUAL, zsh and screen?
Thorsten
[zsh 4.3.11 on Cygwin (XP, 7 and 2008 R2) and on Gentoo Linux,
GNU screen 4.0.3]
Messages sorted by:
Reverse Date,
Date,
Thread,
Author