Article View: comp.unix.programmer
Article #1079Re: Questions about rewriting the History function.
From: Ti Kan
Date: Tue, 23 Oct 1990 23:34
Date: Tue, 23 Oct 1990 23:34
26 lines
1831 bytes
1831 bytes
In <1990Oct19.165721.7584@polyof.poly.edu>, mhoffman@george.poly.edu writes:
>
> I am working on a senior project to rewrite the history function for
> UNIX. My goal is to have the new history functon work like it does in
> MS_DOS. i.e. I want to be able to call up past commands and edit them
> by using the control <hjkl> characters. Additionally, I would like to
> write this as a stand alone program so that I do not have to rewrite
> the shell.
Perhaps it is useful to you to write such a thing for your senior
project, but it seems like such a waste of effort when you can
just use ksh (Korn Shell) that already has command history editing
capability.
Anyway, this will be difficult without incorporating the functionality
into the shell. You can't really intercept keyboard input with a user
program before the shell gets it, unless you have a really weird
tty driver. Also, how do you distinguish shell commands from
keystrokes typed during the run of an application?
-Ti
--
Ti Kan | vorsprung durch technik! \\\
Internet: ti@altos.com \\\
UUCP: ...!{sun|sco|pyramid|amdahl|uunet}!altos!ti /// \\\
The opinions herein are not necessarily those of Altos. ////////\
Technical Details
Message-ID:
<4288@altos86.Altos.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!att!emory!wuarchive!usc!apple!altos!altos86!tiReferences:
<1990Oct21.220115.9458@watdragon.waterloo.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!att!emory!wuarchive!usc!apple!altos!altos86!ti From: ti@altos86.Altos.COM (Ti Kan) Newsgroups: comp.unix.programmer,comp.unix.questions Subject: Re: Questions about rewriting the History function. Message-ID: <4288@altos86.Altos.COM> Date: 23 Oct 90 23:34:23 GMT References: <1990Oct21.220115.9458@watdragon.waterloo.edu> Reply-To: ti@altos86.UUCP (Ti Kan) Followup-To: comp.unix.programmer Organization: Altos Computer Systems, San Jose, CA Lines: 26