Read-eval loop with prompt + user input
Bert Freudenberg
bert at isg.cs.uni-magdeburg.de
Thu Mar 14 13:42:44 UTC 2002
On 14 Mar 2002, Martin Drautzburg wrote:
> Is there a way to write a read-eval loop, so I get some sort of
> commandline shell without any need for the mouse ? I mean something
> like (in bash)
>
> while true
> do
> echo -n "prompt> "
> read command
> eval $command
> done
That's called a Workspace in Squeak. Open it from the world menu or the
right flap.
You type a "command", then press alt-p to eval and print the result (alt-d
to just "do it" without printing, alt-i to "inspect" the result.
-- Bert
More information about the Squeak-dev
mailing list
|