From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <9014166E-65FD-4E63-BC2E-9DD5158DB8D0@sun.com> References: <4324eec68ab4bcd52cf9e8d2eaf1bd90@quanstro.net> <9014166E-65FD-4E63-BC2E-9DD5158DB8D0@sun.com> Date: Mon, 26 Jan 2009 22:35:11 -0800 Message-ID: <4e6ca2050901262235p2fb22460i6fb4b5ce1d15999@mail.gmail.com> From: Akshat Kumar To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Small program "PlanKey" (paraphrase of DOSKey) Topicbox-Message-UUID: 8997e062-ead4-11e9-9d60-3106f5b1d025 2009/1/26 Roman Shaposhnik : ... > Yeah, that's about the only thing that is useful to me > as well. The rest requires too much mousing around > and in general it is quicker for me to compose the > command line anew rather than trying to edit the > bygones. > There are normally two cases in a rio rc window with excessive output and commands floating about: (1) you want to retrieve a prior command and know quite exactly what it is, or unique keywords to identify it, but simply don't have the patience, will-power, eyes, hands, whatever, to type it again or go looking for it; (2) you know the general output a command produced but no clue as to what got you there, and due to arthiritis or bleeding eyes syndrome, you cannot be bothered to scroll up and find it, wa-wa... -- you want to retrieve a prior command. In either case, a possible way of conveniently retrieving ~ would be to make a script that looks for a given keyword, of either (1) or (2), in the window's file (/mnt/.../... -- I'm not on Plan 9 right now) containing that scroll back information, and outputting possible command choices in the style of /bin/kill and friends. Then, in the case of (1), you can pipe it (or just the first line of output, if the same command was entered multiple times) to rc directly, or in the case of (2), go through your choices, edit the commands, or whatever, and `send'. This may have other benefits, and it flows naturally from the Plan 9 style/functionality. If I'm recycling ideas here, feel free to bitch. normally something good comes of it anyways, ak