From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: Fwd: In Vi mode, show whether "insert" or "command" state is active
Date: Wed, 17 Dec 2014 08:55:49 -0800 [thread overview]
Message-ID: <141217085549.ZM555@torch.brasslantern.com> (raw)
In-Reply-To: <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.
next prev parent reply other threads:[~2014-12-17 16:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-17 7:13 Jason Spiro
2014-12-17 7:58 ` Nathan Schwarz
2014-12-17 16:55 ` Bart Schaefer [this message]
2014-12-17 18:27 ` Oliver Kiddle
2014-12-17 8:23 ` Bart Schaefer
2014-12-22 0:07 Jason Spiro
2014-12-22 1:57 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=141217085549.ZM555@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).