zsh-users
 help / color / mirror / code / Atom feed
From: DervishD <raul@pleyades.net>
To: Zsh Users <zsh-users@sunsite.dk>
Subject: Re: Interactive program in Zsh
Date: Wed, 9 Jun 2004 16:52:17 +0200	[thread overview]
Message-ID: <20040609145217.GB10606@DervishD> (raw)
In-Reply-To: <20040609144457.GD10935@madism.org>

    Hi Pierre :)

 * Pierre HABOUZIT <pierre.habouzit@m4x.org> dixit:
> >     I don't know if this is the proper approach for what I need to
> > do: the user is limited to use up arrow and down arrow for travelling
> > into the list of options (maybe pg-up and pg-down for scrolling) and
> > 'enter' to select the highlighted option. The program must process a
> > text, present a list of options containing the text that matched
> > certain regex and allow the user to choose one of the options.
> why don't you use dialog for that ?
> I may be wrong, but i think it already implements all what you need

    AFAIK, dialog won't be able to do the processing, so I will end up
doing an script using sed, grep or awk to do the processing and
dialog (is not called cdialog nowadays?) for the user to choose the
options and run a program on them. I prefer to do all of it in an
script, although dialog will do the option-choosing part easily.

    Thanks for pointing, anyway :)

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/


  reply	other threads:[~2004-06-09 14:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-09 14:32 DervishD
2004-06-09 14:44 ` Pierre HABOUZIT
2004-06-09 14:52   ` DervishD [this message]
2004-06-10 15:37 ` Bart Schaefer
2004-06-10 17:21   ` DervishD
2004-06-11  6:19     ` Bart Schaefer
2004-06-11  9:38       ` Peter Stephenson
2004-06-11  9:41       ` DervishD

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=20040609145217.GB10606@DervishD \
    --to=raul@pleyades.net \
    --cc=zsh-users@sunsite.dk \
    /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).