Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!mcvax!kth!draken!jakob From: jakob@nada.kth.se (Jakob Cederlund) Newsgroups: comp.sys.mac.programmer Subject: Re: Wanted: Code for simple text interface Message-ID: <1360@draken.nada.kth.se> Date: 1 Aug 89 10:40:35 GMT References: <9674@phoenix.Princeton.EDU> Reply-To: jakob@nada.kth.se (Jakob Cederlund) Organization: Royal Institute of Technology, Stockholm, Sweden Lines: 15 In my opinion you should do it just like the MPW Shell does it: Return key does nothing except splitting the text line. ___ Enter ^ key executes the selection. If nothing is selected it executes the line with the caret on. If several lines are selected, they are executed in order. Using this method you do not have need for any special treatment of rubout, users going back in the text etc. BTW MPW Shell uses a not too bad script language, take a look at it. /Jakob Cederlund jakob@nada.kth.se Computer Science Dept. Royal Institute of Technology, Stockholm, Sweden