Xref: utzoo comp.unix.programmer:293 comp.unix.questions:26349 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cmcl2!polyof!roseann From: roseann@polyof.poly.edu (RoseAnn Ammendolea) Newsgroups: comp.unix.programmer,comp.unix.questions Subject: Questions about rewriting the History function. Message-ID: <1990Oct19.165721.7584@polyof.poly.edu> Date: 19 Oct 90 16:57:21 GMT Reply-To: mhoffman@george.poly.edu Organization: Polytechnic University Lines: 13 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 characters. Additionally, I would like to write this as a stand alone program so that I do not have to rewrite the shell. The main approach I will use will be to store the previous commands in alinked list. My only problem is that I do not know how to intercept the commandonce it has been entered, before it gets executed. Likewise, I do ont know how to execute the command once I have retreived it form the list. i.e. I want to display the command for possible editting and execute it when the carriage return is pressed. If there is anyone out there that has some ideas or suggestions, they would be greatly appreciated. Also if anyone knows where I might be able to find the source code for the present HISTORY function or the R function I would like to know so I can look at it and gain some insight to my project. P.S. Please do not send replys to posters address use the address in the reply-to header. Thank You. Mark