Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

trapping WINCH fails in 3.0.3-test4



I can't get a trap on SIGWINCH to work in 3.0.3-test4:

    e:1% zsh-3.0.3-test4 -f
    eeyore% TRAPWINCH() { echo here }
    eeyore% kill -WINCH $$
    eeyore% _

I wanted to use this to reset my $LESS variable based on the new window
size.  In place of the above I've just installed

    function precmd {
	[[ $LINES != $saved_lines ]] && {
	    saved_lines=$LINES
	    eval LESS=$LESS_eval
	}
    }

in my .zshrc, can anyone suggest a better way?

-- 
Roderick Schertler
roderick@xxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author