Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!rosie!next.com!jmynatt From: jmynatt@next.com Newsgroups: comp.sys.next Subject: Re: Laziness Message-ID: <665@rosie.NeXT.COM> Date: 6 May 91 18:56:54 GMT References: <1991May3.230846.27038@cunixf.cc.columbia.edu> Sender: news@NeXT.COM Lines: 39 Nntp-Posting-Host: ragarok.next.com In article <1991May3.230846.27038@cunixf.cc.columbia.edu> ta-aca@cunixb.cc.columbia.edu (Andrew C. Athan) writes: > > It is impotant to understand the difference between Terminal (or Stuart) > [[The App]] and the program that is running in the Terminal window [[The > Shell]]. It is the shell which needs to "cd" Stuart/Terminal have nothing > to do with details of what the app in the window is doing (besides acting as > one end of a pty). > > So ... the problem is communicating the "cd" command to > csh/ksh/bash/whatever. Probably the only generic guranteed to work solution > is to have the Services> item of which you speak "type" a cd command into the > window in question. You, as the user of the Service, would have to make sure > your shell is at a prompt which can accept the "cd." > > aca > //Email: ta-aca@cunixb.cc.columbia.edu OR athan@cs.columbia.edu If I write an app which runs a program such as 'csh/ksh/bash/whatever', I can invoke that program with control. If that means i issue a cd and a clear then so be it. Stuart and Terminal have a lot to do with the details of what the app in the window is doing. Stuart/ Terminal / Whatever then app object is, has complete control and can even do things like monitor what you are typing into the Text object (which sits between the window and the program ) and take appropriate action such as capturing typing rates for data entry applications. The user of the Service I was describing is the FileViewer. The Service responder (Stuart or Terminal) recognizes that it has been invoked by a service request (speaker/listener pair) and can get the information needed (directory path) and start up the appropriate program (csh/ksh/bash/whatever) and issue 'cd' commands or whatever. The Stuart/Terminal window opened can be a new one or a existing on (a feature which should be set by the user preferences). Hope this clears things up a bit. jim