2002-05-29 21:59:25 +00:00
|
|
|
stshell
|
|
|
|
-------
|
|
|
|
|
|
|
|
Author: Stefan Urbanek <urbanek@host.sk>
|
|
|
|
|
|
|
|
|
|
|
|
What is stshell?
|
|
|
|
-----------------
|
2002-06-09 13:33:35 +00:00
|
|
|
StepTalk Shell is an interactive tool for communicating with objects.
|
2002-05-29 21:59:25 +00:00
|
|
|
|
|
|
|
Features
|
|
|
|
--------
|
|
|
|
- GNUstep classes and objects
|
|
|
|
- command-line editing
|
|
|
|
- TAB completition of named objects and selectors
|
|
|
|
|
2003-02-21 12:45:42 +00:00
|
|
|
For more information read included *.txt files.
|
2002-05-29 21:59:25 +00:00
|
|
|
|
|
|
|
Installation
|
|
|
|
------------
|
2003-02-21 12:34:48 +00:00
|
|
|
Requirements: StepTalk and the readline library (development files)
|
2002-05-29 21:59:25 +00:00
|
|
|
|
|
|
|
> make
|
|
|
|
> make install
|
|
|
|
|
|
|
|
Running
|
|
|
|
-------
|
|
|
|
To run stshell with default language, run just
|
|
|
|
|
|
|
|
> stshell
|
|
|
|
|
|
|
|
If you would like to use another language, then use
|
|
|
|
|
|
|
|
> stshell -language AnotherLanguage
|
|
|
|
|
2002-06-08 19:05:34 +00:00
|
|
|
To use AppKit
|
|
|
|
|
|
|
|
> stshell -environment AppKit
|
|
|
|
|
|
|
|
To use it as a distributed objects 'glue'
|
|
|
|
|
|
|
|
> stshell -environment Distributed
|
|
|
|
|
2002-05-29 21:59:25 +00:00
|
|
|
The shell will greet you with 'Welcome to the StepTalk shell.' message.
|
|
|
|
|
|
|
|
Welcome to the StepTalk shell.
|
|
|
|
StepTalk > _
|
|
|
|
|
|
|
|
Now you may write statements in the language you have specified.
|
|
|
|
|
|
|
|
StepTalk > Transcript showLine:'Current date is ', ((NSDate date) description)
|
|
|
|
|
|
|
|
If the line is too long, then you may use the backslash '\' character at the end
|
|
|
|
of the line to continue on the next line.
|
|
|
|
|
|
|
|
StepTalk > Transcript showLine:'Current date is ', \
|
|
|
|
... ? ((NSDate date) description)
|
|
|
|
|
|
|
|
Objects history array
|
|
|
|
---------------------
|
|
|
|
All results from the expressions are stored in the 'Objects' array. The example
|
|
|
|
above can be written in more steps:
|
|
|
|
|
|
|
|
StepTalk > ((NSDate date) description)
|
|
|
|
0: 2002-05-29 22:41:57 +0200
|
|
|
|
StepTalk > 'Current date is ', (Objects @ 0)
|
|
|
|
1: Current date is 2002-05-29 22:41:57 +0200
|
|
|
|
StepTalk > Transcript showLine: (Objects @ 1)
|
|
|
|
Current date is 2002-05-29 22:41:57 +0200
|
|
|
|
|
|
|
|
To show all objects type:
|
|
|
|
|
|
|
|
StepTalk > Shell listObjects
|
|
|
|
Objects
|
|
|
|
0: '2002-05-29 22:41:57 +0200' (GSCInlineString)
|
|
|
|
1: 'Current date is 2002-05-29 22:41:57 +020...' (GSUnicodeString)
|
|
|
|
|
2002-05-29 22:47:09 +00:00
|
|
|
TAB completition
|
|
|
|
----------------
|
|
|
|
Here is an example of TAB completition.
|
|
|
|
StepTalk > Tr<TAB> showL<TAB>:'Current date is ', ((NSDate date) desc<TAB>i<TAB>)
|
2002-05-29 21:59:25 +00:00
|
|
|
|
|
|
|
Feedback
|
|
|
|
--------
|
|
|
|
Any questions, comments and bug reports are velcome at
|
|
|
|
|
|
|
|
urbanek@host.sk
|
|
|
|
|