From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10660 invoked by alias); 17 Dec 2014 07:13:50 -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: 33986 Received: (qmail 15662 invoked from network); 17 Dec 2014 07:13:50 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=n9lOfirGJNxejJ/fg2GqmPB3R39oMPoJTZnAoL+3pjg=; b=PRTmxPzn1yBNHmGGdbrvRt7tQBgMkMHjlJvB9x+d6SoPUAZcHhDj96a/NLHyS0jHlZ KO9WMuh0igWvqGMvu5lejGcVI4W5dx7akNqMByQlnuaauJR31oQhz/MEebCetzxAAnUi /KpqtSZpyvCe1HwYcP7kV2HyEAfkEKvKAoYVja8NrCv3+Tw3LoPRrlyEARBuGRaIOIel isi8R6iVKzLnkndKSypVs4rRXhZzCv2qMiPfOFPqoH+Y7UYLXPcAkpqLEukkYstKAjyX 5JkhUdxH5nkw5CMzxLxscLDV7eBQfCNwr3YZOZR4USP8ZBfQ4qeDaJ2hZaf1oYxiPI+D 7Sxw== MIME-Version: 1.0 X-Received: by 10.42.107.211 with SMTP id e19mr31311893icp.27.1418800429006; Tue, 16 Dec 2014 23:13:49 -0800 (PST) Date: Wed, 17 Dec 2014 02:13:48 -0500 Message-ID: Subject: Fwd: In Vi mode, show whether "insert" or "command" state is active From: Jason Spiro To: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 Dear list, Here is a feature request forwarded to you from the Debian bug tracking system. You may also view the feature request on the Web at . Kind regards, ~Jason Spiro ---------- Forwarded message ---------- From: Debian Bug Tracking System Date: Fri, Dec 12, 2014 Subject: Bug#772985: In Vi mode, show whether "insert" or "command" state is active Package: zsh Version: 4.3.17-1 Severity: wishlist Zsh includes a Vi emulation feature. This feature lets you use the Vi keys at the zsh command prompt. Zsh's Vi emulation includes a "command mode" and an "insert mode". Zsh's Vi emulation does not show the user which mode is active. This is frustrating and confusing. (It's like an electric oven with no indicator to show whether the oven is on or off.) The current state-of-the-art Vi implementation is gVim, maintained by Bram Moolenaar. gVim provides a few indicators to tell you which mode you're in. One of these indicators is the cursor. gVim uses a blinking block cursor in command mode, and a blinking bar in insert mode. It would be very good if zsh, too, would show the user which mode was active. You can do this any way you like. I would like it if you did this by setting the cursor style, just as gVim does. Here is how to set the cursor style (in supported terminals): Set cursor to blinking bar: echo -en "\e[5 q" Set cursor to blinking block: echo -en "\e[1 q" The above commands definitely work in recent versions of iTerm2 (for Mac OS) and xterm. I haven't tested them in any other terminal emulators. Surely some terminal emulators do nothing at all in response to the above control sequences. Luckily, since Debian is open source, their users can submit patches to fix this. P.S. Thank you very much for helping to maintain zsh. It's perhaps the most featureful shell out there, and I like it. Kind regards, ~Jason Spiro -- Bug#772985: http://bugs.debian.org/772985 Debian Bug Tracking System