rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Dave Mason <dmason@plg.uwaterloo.ca>
To: rc@hawkwind.utcs.toronto.edu
Cc: rsalz@osf.org
Subject: Revised readline package available
Date: Tue, 27 Oct 1992 10:32:59 -0500	[thread overview]
Message-ID: <92Oct27.103308est.29146@plg.uwaterloo.ca> (raw)
In-Reply-To: <9210271334.AA02082@earth.osf.org> (rsalz@osf.org)

> Date: Tue, 27 Oct 1992 08:34:47 -0500
> From: rsalz@osf.org
> 
> 	 The revised readline is now on the ftp site.
> err, I forgot.  hawkwind?  "cant set guest permissions"

	ftp.white.toronto.edu

I don't suppose anyone has written the history/command-editing/completion
program that I really want.  I don't want readline in my rc (or es),
but I do want easy filename completion.

So what I plan to do is set eol (an altenate terminater in cooked
mode) to TAB and eol2 (another alternate) to ESC, then make rc call my
history program if it gets a line that doesn't end in \n (after
writing what it got to $history).  Then my history program will read
$history and see what the trailing character is.  If it's not a
printable character it will push it back and call readline (or
possibly make Input point at the whole line - I haven't written it
yet).  Then readline will do completion or history or whatever until
it has a \n and then hand the line back to rc (i.e. print it on
stdout) to do with what it will (which will treat it as if it had just
been returned from read.  Note that with this description, you can
also type:
	foo^D
and you will be handed to the history/completion program, in addition
to:
	foo^I
or
	foo<LEFT-ARROW>
or
	<UP-ARROW>

This looks pretty straightforward, but I'm very busy this week, so I
probably won't do it until next week.  (If anybody else likes the idea
& does it beforehand, great!)  I'm open to comments or better ideas.

	../Dave

(BTW, I wish the small readline didn't have an 80 character limit.)


  reply	other threads:[~1992-10-27 15:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-10-27 13:34 rsalz
1992-10-27 15:32 ` Dave Mason [this message]
1992-10-27 15:38 rsalz

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=92Oct27.103308est.29146@plg.uwaterloo.ca \
    --to=dmason@plg.uwaterloo.ca \
    --cc=rc@hawkwind.utcs.toronto.edu \
    --cc=rsalz@osf.org \
    /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 NNTP newsgroup(s).