zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: How to capture the tab completion result?
Date: Sun, 26 May 2013 16:10:28 -0700	[thread overview]
Message-ID: <CAH+w=7ZVzg40or=zXTRDN6QyWVFG+_uQSgh0t=L+oefDHguhzg@mail.gmail.com> (raw)
In-Reply-To: <CAM8HBcV0+VEu6ef1JbAMOChKnD=zprtiEke1=6xTOB-EK1z6TQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 585 bytes --]

On Saturday, May 25, 2013, Mario Signorino wrote:

> Hi all
>
> I need some help and possibly also an advice.
>
> I want is to surround the result of the tab-completion with a special
> not-printable chars.


This is not going to be straightforward, but have a look at Test/comptest
in the sources, which does a similar thing.  It forces completion listings
and then "colors" them with markup that can be parsed.  The characters it
uses aren't actually non-printing, but if your app is going to grab the
listing on its way to the terminal anyway, perhaps it can also strip the
markup.

  reply	other threads:[~2013-05-26 23:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-25 23:27 Mario Signorino
2013-05-26 23:10 ` Bart Schaefer [this message]
2013-05-27 16:45   ` Mario Signorino
2013-05-28  8:25     ` Bart Schaefer
2013-05-30 21:15       ` Mario Signorino
2013-05-26 11:23 Marc Chantreux

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='CAH+w=7ZVzg40or=zXTRDN6QyWVFG+_uQSgh0t=L+oefDHguhzg@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@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).