From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 26 Jan 2009 19:21:19 -0800 From: Roman Shaposhnik In-reply-to: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-id: <2EE09759-AB3D-46CC-809C-8CFB74E14A44@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=US-ASCII Content-transfer-encoding: 7BIT References: Subject: Re: [9fans] Small program "PlanKey" (paraphrase of DOSKey) Topicbox-Message-UUID: 89648f64-ead4-11e9-9d60-3106f5b1d025 On Jan 23, 2009, at 2:03 AM, pavel.klinkovsky@gmail.com wrote: > Hi all, > > In Plan9 I missed the simple way to repeat previous (or previous of > previous etc.) command in the terminal. > I prepared a very small (an stupid) program to allow that. > > Compile the following source code and run it in that way: > 8.out | rc -i > > You can insert the commands, and if you want to walk through the > "history", just press CTRL+K (backward) or CTRL+L (foreward). Nice! > case -0x11: > read(0, &c, sizeof(c)); > read(0, &c, sizeof(c)); > break; What's -0x11 ? Thanks, Roman.