From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26407 invoked from network); 13 Jul 1998 18:30:46 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 13 Jul 1998 18:30:46 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id OAA22251; Mon, 13 Jul 1998 14:21:33 -0400 (EDT) Resent-Date: Mon, 13 Jul 1998 14:17:46 -0400 (EDT) Date: Mon, 13 Jul 1998 20:19:38 +0200 (CEST) From: Heinz Deinhart To: Bart Schaefer cc: zsh-users@math.gatech.edu Subject: Re: completion & read, vared In-Reply-To: <980713103758.ZM2098@candle.brasslantern.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Resent-Message-ID: <"j1Qz32.0.GP5.8zagr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1671 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Mon, 13 Jul 1998, Bart Schaefer wrote: > On Jul 13, 1:10pm, Heinz Deinhart wrote: > } Subject: completion & read, vared > } > } is there a way to use completion with any realine-like function ? > > Not directly; "read" inputs characters one at a time, for some reason, > even when not in raw mode. > > } vared uses completion, but i cant figure out how to change its behaviour. > > Change its behavior how? > hmm, maybe i'm missing something, but i want to do something like that: simple example: "compctl -u huhu" "huhu emp" expands to "huhu emperor" well and now it would be cool if vared had a completion option (maybe -C) "vared -p 'enter a username> ' -C '-u' returnvar" "emp" expands to "emperor" ^^^^ the compctl options that vared should use in input-line anyway, thanks for the script, i will try to understand it :) ciao, Heinz