Path: utzoo!attcan!uunet!ccicpg!nick From: nick@ccicpg.UUCP (Nick Crossley) Newsgroups: comp.sys.mac Subject: Re: Mac Interface v. "Command Line" interface debates Summary: MPW tool prompt & reply Message-ID: <6017@ccicpg.UUCP> Date: 6 Jan 89 01:22:56 GMT References: <15213@mimsy.UUCP> <958@esquire.UUCP> <874@lts.UUCP> <6167@hoptoad.uucp> <7859@claris.com> <34179@bbn.COM> Reply-To: nick@ccicpg.UUCP (Nick Crossley) Followup-To: comp.sys.mac.programmer Organization: CCI CPG, Irvine CA Lines: 30 In article <34179@bbn.COM> levin@BBN.COM (Joel B Levin) writes: >In article <7859@claris.com> drc@claris.com (Dennis Cohen) writes: >|You can overcome this and make it more like unix if you remember to select >|your response to the prompt before hitting "Enter". Yes, I know that it is >|a kludge; however, it can get unix programs running and keep them running >|under the shell. >Or, if you are really looking for workarounds for prompting programs, >respond to the prompt with response -- No mousing required. Yes, these ideas both work, but it would be nice to have a way of getting the expected prompt/reply format working. How about a way of setting an 'auto- select' mode (did I just say 'mode'?? :-)) something like this :- printf ("Prompt "); /* Output prompt, leave insertion point at end */ set_auto_insert (); gets (reply); /* Any characters typed are added to selection */ It is rather kludgy, and you need to change the source, but it might still be nicer than forcing the user to remember weird rituals while running the program. Followups redirected to comp.sys.mac.programmer, where this is now more relevant. -- <<< standard disclaimers >>> Nick Crossley, CCI, 9801 Muirlands, Irvine, CA 92718-2521, USA. (714) 458-7282 uunet!ccicpg!nick / nick@ccicpg.UUCP