On Fri, May 01, 2015 at 09:04:59AM +0800, Pierce Ng wrote:
On Tue, Apr 28, 2015 at 11:39:56AM -0400, David T. Lewis wrote:
Yes, that is the correct way to do it.
David,
It seems Command Shell doesn't handle REPL applications like the sqlite3 shell, tclsh and goodsrv. How difficult is that to implement, in your view? Alternatively (unless they are the same stuff underneath) how to go about building something like Expect or pexpect?
Hi Pierce, I'm not sure if I am understanding your question, but please have a look at PipeableOSProcess class>>tkExample. This is an example of having your image talking to a REPL shell, /usr/bin/wish in this case, but probably similar to a sqlite3 shell. The wish shell is a tclsh interpreter with Tk gui, so I expect that is close to what you are trying to do. If you are interested in having your squeak/pharo image be the REPL server, then class ExternalCommmandShell may be closer to what you want. Dave