From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21675 invoked from network); 11 Oct 2004 23:29:52 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 11 Oct 2004 23:29:52 -0000 Received: (qmail 28618 invoked from network); 11 Oct 2004 23:29:46 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Oct 2004 23:29:46 -0000 Received: (qmail 11647 invoked by alias); 11 Oct 2004 23:29:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20471 Received: (qmail 11632 invoked from network); 11 Oct 2004 23:29:41 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Oct 2004 23:29:41 -0000 Received: (qmail 27860 invoked from network); 11 Oct 2004 23:29:04 -0000 Received: from lorien.emufarm.org (HELO lorien.comfychair.org) (64.81.48.166) by a.mx.sunsite.dk with SMTP; 11 Oct 2004 23:29:02 -0000 Received: from lorien.comfychair.org (localhost [127.0.0.1]) by lorien.comfychair.org (8.12.7/8.12.7) with ESMTP id i9BNSvqo014075; Mon, 11 Oct 2004 16:28:58 -0700 Received: (from duvall@localhost) by lorien.comfychair.org (8.12.7/8.12.7/Submit) id i9BNSvHW014074; Mon, 11 Oct 2004 16:28:57 -0700 Date: Mon, 11 Oct 2004 16:28:57 -0700 From: Danek Duvall To: zsh-workers@sunsite.dk Cc: Jordan Breeding Subject: Re: prompt and prompt_cr option Message-ID: <20041011232857.GB11629@lorien.comfychair.org> Mail-Followup-To: Danek Duvall , zsh-workers@sunsite.dk, Jordan Breeding References: <546D60C2-1A06-11D9-B624-000A95A6C222@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 On Mon, Oct 11, 2004 at 03:11:43PM -0700, Bart Schaefer wrote: > For certain types of terminals you might be able to query the current > cursor position and do something clever when it is not in column zero, but > it's been deemed more trouble than it's worth to have ZLE attempt to > determine whether the terminal has support for this and then to make use > of that information. (Querying the terminal involves sending a control > string and then reading back a response, which is unreliable because it > can be garbled by user type-ahead or other interference.) On the other hand, you could write a precmd function that did this and spit out an extra newline if necessary (and set nopromptcr), no? If so, that might be worth adding to the Misc directory, as it's such a FAQ. Danek