Behaving like a shell

Discussion in 'Perl Misc' started by Matthew Braid, Oct 6, 2003.

  1. Hi all,

    I've been looking around old messages trying to find if shell-like input
    has been implemented already (ie input with up/down/left/right arrows
    for navigation through history/the command line, tab complete commands
    etc) but have had little luck so far.

    I'm not writing a perl shell - I'm writing an application shell in perl
    (_not_ a system shell - its an interactive command line interface to a
    group of applications I'm writing).

    I _can_ write it myself - Term::ReadKey works nicely on my system - but
    if there's code out there already existing that I can modify to my needs
    all the better :)

    So does anyone know of a package/program already written that does what
    I want?

    MB
     
    Matthew Braid, Oct 6, 2003
    #1
    1. Advertising

  2. Matthew Braid wrote:
    >
    > Hi all,
    >
    > I've been looking around old messages trying to find if shell-like input
    > has been implemented already (ie input with up/down/left/right arrows
    > for navigation through history/the command line, tab complete commands
    > etc) but have had little luck so far.
    >
    > I'm not writing a perl shell - I'm writing an application shell in perl
    > (_not_ a system shell - its an interactive command line interface to a
    > group of applications I'm writing).
    >
    > I _can_ write it myself - Term::ReadKey works nicely on my system - but
    > if there's code out there already existing that I can modify to my needs
    > all the better :)
    >
    > So does anyone know of a package/program already written that does what
    > I want?


    Perhaps this is what you want:

    http://www.gregorpurdy.com/gregor/psh/


    John
    --
    use Perl;
    program
    fulfillment
     
    John W. Krahn, Oct 6, 2003
    #2
    1. Advertising

  3. That seems to have all the behaviour I want :) Thanks.

    MB

    John W. Krahn wrote:

    > Matthew Braid wrote:
    >
    >>Hi all,
    >>
    >>I've been looking around old messages trying to find if shell-like input
    >>has been implemented already (ie input with up/down/left/right arrows
    >>for navigation through history/the command line, tab complete commands
    >>etc) but have had little luck so far.
    >>
    >>I'm not writing a perl shell - I'm writing an application shell in perl
    >>(_not_ a system shell - its an interactive command line interface to a
    >>group of applications I'm writing).
    >>
    >>I _can_ write it myself - Term::ReadKey works nicely on my system - but
    >>if there's code out there already existing that I can modify to my needs
    >>all the better :)
    >>
    >>So does anyone know of a package/program already written that does what
    >>I want?

    >
    >
    > Perhaps this is what you want:
    >
    > http://www.gregorpurdy.com/gregor/psh/
    >
    >
    > John
     
    Matthew Braid, Oct 6, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    5,729
    Jonathan Bromley
    Feb 18, 2005
  2. Mark
    Replies:
    1
    Views:
    458
  3. Patrick Kowalzick
    Replies:
    5
    Views:
    477
    Patrick Kowalzick
    Mar 14, 2006
  4. Replies:
    8
    Views:
    932
    Alf P. Steinbach
    Nov 22, 2007
  5. gu
    Replies:
    1
    Views:
    207
    Bruno Desthuilliers
    Jan 27, 2009
Loading...

Share This Page