From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29869 invoked by alias); 17 Dec 2014 16:55:25 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33993 Received: (qmail 22118 invoked from network); 17 Dec 2014 16:55:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=b6gFOWC0 c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=A92cGCtB03wA:10 a=OKkHcXDGhSX3sHjKfowA:9 a=CjuIK1q_8ugA:10 a=8l_eNqAVfWcA:10 a=ATjaN1W-sLQA:10 a=G0X3Q6lIhSAA:10 From: Bart Schaefer Message-id: <141217085549.ZM555@torch.brasslantern.com> Date: Wed, 17 Dec 2014 08:55:49 -0800 In-reply-to: <20141217075818.GA5675@Persephone> Comments: In reply to Nathan Schwarz "Re: Fwd: In Vi mode, show whether "insert" or "command" state is active" (Dec 17, 8:58am) References: <20141217075818.GA5675@Persephone> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: Fwd: In Vi mode, show whether "insert" or "command" state is active MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Dec 17, 8:58am, Nathan Schwarz wrote: } } zle-keymap-select () { } if [ $KEYMAP = vicmd ]; then } echo -en "\e[5 q" } else } echo -en "\e[1 q" } fi } zle reset-prompt } } } zle -N zle-keymap-select You don't even need the reset-prompt in that case because you're echo'ng a nonprinting sequence that causes the terminal to change the cursor shape.