[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.7.5 Starting the Editor

42D46 ViewLevel1 ( ob → ob' )
Edits the object in level 1.
444EE Char>Edit
42D82 CharEdit
53A90 ClrNewEditL
42D32 EditLevel1 ( ob → ob' )
42DC8 ObEdit ( ob → ob' T )
( ob → F )
Edits object. When the user cancels, only FALSE is returned. Otherwise the changed object along with TRUE is returned.
443CB EditString ( $ → )
Starts editing the string in the command line when the current program exits. This is the entry to use if a program should exit with the command line. Use InitEdLine before this entry to clear the command line (if desired) - if not, the string is inserted into the existing command line. All code after this entry will be executed before control is handed to the editor application. For example:
::
"SOME STRING"
DUPLEN$ SWAP (get length)
InitEdLine (clear the editline)
EditString (string to editline)
STO_CURS_POS2 (cursor at end)
"Starting editor..."
FlashMsg (display *before* edit)
;
Note that when you press ENTER after editing, the command line will be parsed normally.
42E86 Rcl&Do: ( id → )
Executes the program which is next in the runstream on the contents of the variable. The program typically is an edit command, with the stack diagrams
( ob → ob' T )
( ob → F )
If the flag is TRUE, ob' is stored back into the original variable.
42E27 Roll&Do: ( # → )
Does ROLL and then executes the program which is next on the runsteam. So the program is applied to the object on level #. Typically, this is an edit command, with the stack diagram
( ob → ob )
After the program exits, UNROLL is used to put the object back to the right stack position. This entry is probably used in the interactive stack.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated by Carsten Dominik on May, 30 2005 using texi2html