From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from plg.uwaterloo.ca ([129.97.140.10]) by hawkwind.utcs.toronto.edu with SMTP id <2778>; Tue, 27 Oct 1992 10:33:48 -0500 Received: by plg.uwaterloo.ca id <29146>; Tue, 27 Oct 1992 10:33:08 -0500 CC: rsalz@osf.org From: Dave Mason To: rc@hawkwind.utcs.toronto.edu In-reply-to: <9210271334.AA02082@earth.osf.org> (rsalz@osf.org) Subject: Revised readline package available X-Face: AIhKpNgOq"]N605xNB+orT]rLNWK$J<}qa|0lQ0B2j[nV{f6p[rts{~dP03$Nc'O|KTqvi2 a@~=X4wtyx17qU]8GrH3Z4e/PHS4+9J#jBI4qoR5_A[VwN u,gG$~mRI1#AayDR Date: Tue, 27 Oct 1992 10:32:59 -0500 > 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 or 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.)