unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Harry Putnam <hgp@sbcglobal.net>
Subject: Emacs like line editing during perl input.
Date: Mon, 30 Dec 2002 02:01:26 GMT	[thread overview]
Message-ID: <m28yy8gt8p.fsf@sbcglobal.net> (raw)

I'm sneaking in a perl question that is only slightly related to
emacs.

I'd like to have somekind of line editing available during user
input to a perl script.

By default it seems none is available.  Any attempt to navigate or
edit an input line produces control chars.  Only backspace works to
edit.

Test:
  perl -e 'while(<>){print}'

Try to edit an input line

How can I get behavior like is available in any of the true korn
shells (not pdksh).

ksh93 <RET>
read

Any input lines are editable with full vi like line editing.
if -o emacs is set then full emacs line editing is available.
How can I get similar line editing ability duing perl input?

I think Term::ReadLine is the tool for this but couldn't figure out
how to deploy it.

             reply	other threads:[~2002-12-30  2:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-30  2:01 Harry Putnam [this message]
2002-12-30  8:20 ` Emacs like line editing during perl input those who know me have no need of my name
2002-12-30 16:01   ` Harry Putnam
2002-12-30 16:15     ` those who know me have no need of my name
2002-12-31  1:17       ` Harry Putnam
2002-12-31  1:58         ` Bijan Soleymani
2002-12-31  2:32           ` Harry Putnam
2002-12-31  3:17           ` Harry Putnam
     [not found]           ` <mailman.737.1041305477.19936.help-gnu-emacs@gnu.org>
2002-12-31  3:52             ` Bijan Soleymani
2002-12-31  4:24               ` Harry Putnam
     [not found]               ` <mailman.738.1041308660.19936.help-gnu-emacs@gnu.org>
2002-12-31  5:45                 ` Bijan Soleymani
2002-12-31 15:14 ` Kai Großjohann
2002-12-31 15:30   ` Harry Putnam
2002-12-31 17:29     ` those who know me have no need of my name

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m28yy8gt8p.fsf@sbcglobal.net \
    --to=hgp@sbcglobal.net \
    /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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).