zsh-users
 help / color / mirror / code / Atom feed
* Key bindings not working under screen
@ 2011-02-15 10:55 Thorsten Kampe
  2011-02-15 11:16 ` Thorsten Kampe
  2011-02-15 15:44 ` Bart Schaefer
  0 siblings, 2 replies; 11+ messages in thread
From: Thorsten Kampe @ 2011-02-15 10:55 UTC (permalink / raw)
  To: zsh-users

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]


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-02-26 20:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-15 10:55 Key bindings not working under screen Thorsten Kampe
2011-02-15 11:16 ` Thorsten Kampe
2011-02-15 15:49   ` Bart Schaefer
2011-02-15 18:19     ` Thorsten Kampe
2011-02-15 15:44 ` Bart Schaefer
2011-02-15 18:59   ` Thorsten Kampe
2011-02-16  3:51     ` Bart Schaefer
2011-02-16 11:41       ` Thorsten Kampe
2011-02-16 17:01         ` Bart Schaefer
2011-02-25 16:56           ` Thorsten Kampe
2011-02-26 20:09             ` Hemant Borole

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).