Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!sdd.hp.com!hp-pcd!hpfcso!hpfcdc!gates From: gates@hpfcdc.HP.COM (Bill Gates) Newsgroups: comp.sys.hp Subject: Re: Simulating a prompt. Message-ID: <5570427@hpfcdc.HP.COM> Date: 1 Jun 90 17:37:23 GMT References: <24682@mimsy.umd.edu> Organization: HP Ft. Collins, Co. Lines: 15 >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. To do this I believe you'd have to open the tty device, disable canonical input and echoing, and do your own character parsing. Once canonical input and echoing is disabled, you can read one character at a time, echoing out only the ones you want the user to see. You can suppress backspaces that would overwrite the prompt, etc. See termio(7) in the HP-UX Reference for a list of the flags you'd need to unset. Get and reset the termios structure using ioctls documented there. Bill