From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28125 invoked by alias); 28 May 2013 08:26:11 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17816 Received: (qmail 20503 invoked from network); 28 May 2013 08:26:06 -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.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at brasslantern.com does not designate permitted sender hosts) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=4twFbUp27QOf78MI+tPDL8XHeaio+xhXybJx8iX0Dv8=; b=aGnHWbGwVdhKhu9FyzZ1JEVW/3uKJZc1TuAvzPrkeGL6Hnc04l8AB4qXt3CTEs0Xuj P2AGmvJA1yEjg5V7joY65wcLuLX+zHuPT7xAzFoTAsC9LP6iFSJQCMBju6n/aIkfY+RI cM5TWQq6rmm4yT1ZN/+wHlJLobWo1kdvMljPiZNSRQvV3OzeOGf2nyJN7cFFPZCtKC9I Nn0u4LFw7n33hph1eKnAVK1C6TnEpYw5TOu2E+S/sfH+y0mfe96Lu5ihjPmp4vzganGP yW5uTCV7VlkqUWM+8Hjp8Yy2uzI083MGfCdKKcDMLJII0N8NXhjRc+mlNtXPFgzXDvBq 8FHg== MIME-Version: 1.0 X-Received: by 10.152.19.166 with SMTP id g6mr15503021lae.4.1369729557602; Tue, 28 May 2013 01:25:57 -0700 (PDT) In-Reply-To: References: Date: Tue, 28 May 2013 01:25:57 -0700 Message-ID: Subject: Re: How to capture the tab completion result? From: Bart Schaefer To: Mario Signorino Cc: Zsh Users Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkGZqA84aAuPZWpzYNd7LIgTHG37rZEtVIzCJSyDJtKPaqzMY8phzFGM2YpJsbKAKMKah3Y On Mon, May 27, 2013 at 9:45 AM, Mario Signorino wrote: > > zstyle ":completion:*:descriptions" format "\033[H%d" > > Is it also possible to enable the interpretation of backslash escapes? Just use the $'...' notation to embed a literal escape in the style: zstyle ":completion:*:descriptions" format $'\033[H%d' It's sort of a matter of personal preference whether to write $'\033'"[H..." (concatenate two sets of quotes) or just wrap the whole thing in $'...' like I did. Concatenating the double quotes makes it easier to reference variables, etc., but you can't use $'...' inside double quotes.