Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Fwd: In Vi mode, show whether "insert" or "command" state is active
- X-seq: zsh-workers 33993
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Fwd: In Vi mode, show whether "insert" or "command" state is active
- Date: Wed, 17 Dec 2014 08:55:49 -0800
- In-reply-to: <20141217075818.GA5675@Persephone>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAN2X26=YUSe95T0aMHxTCccXAE7ZeZPBN2aR=4L_tssVxxJLSQ@mail.gmail.com> <20141217075818.GA5675@Persephone>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author