From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 23 Jan 2009 12:56:04 +0000 Message-ID: From: roger peppe 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: 85c9f31c-ead4-11e9-9d60-3106f5b1d025 one problem with this approach is that you won't be able to use mouse editing as usual on the command line, as the program grabs each keystroke as it's typed. that negates one of the major advantages of rio/9term. if you were to do this, a better place would be in rio itself (the down side being that rio can't distinguish between input to different programs, so stuff pasted to "cat>somefile" goes in the same buffer as your rc commands.) i seem to remember that russ's " and "" commands (which i've failed to find) just scan the console text for lines that start with the current prompt - which has its own disadvantages. i don't think there's a really good answer (yet?)