Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!mimsy!preetham@ra.src.umd.edu From: preetham@ra.src.umd.edu (Preetham Gopalaswamy) Newsgroups: comp.sys.hp Subject: Simulating a prompt. Message-ID: <24682@mimsy.umd.edu> Date: 31 May 90 21:28:05 GMT Sender: news@mimsy.umd.edu Reply-To: preetham@ra.src.umd.edu (Preetham Gopalaswamy) Organization: Neural Systems Lab., Univ. of Maryland, College Park, MD 20742 Lines: 10 I have written a front end program for a device which is connected to our HP835 by an RS232 link. I would like this program to echo a prompt (similar to the c-shell prompt). The problem that I am having is that it is possible by using the backspace key to erase the prompt (since I currently use the C command "printf" to echo the prompt each time). Is there any way by which I can prevent this and not have the cursor go back over the prompt ? I do not face this problem with my shell prompt and would like to have the same thing be true for this simulated prompt. I would appreciate any help I can get. Thanks. Preetham Gopalaswamy