SED - The Screen Based Editor |
|
|
The SED command is a screen based editor based on the principles of the EMACS editor, widely used on Unix/Linux systems. It is particularly useful for editing QMBasic source programs where many lines (fields) can be seen at once.
Format
SED {{DICT} file.name {record.id ... | CREATING.SEQKEY}}
where
If no file.name is specified, SED will prompt for this name. The response may include a prefix of DICT to select the dictionary portion of the file.
If no record.id is specified and the default select list is active, this list is used to identify the records to be edited. If no record.id is specified and the default select list is not active, SED prompts for the record.id. Use of CREATING.SEQKEY instead of a record id automatically generates the next sequential key for the file.
An asterisk (*) either on the command line or as the first record.id entered in response to the prompt will cause SED to select all records of the file and edit each in turn.
A question mark (?) as the first record.id entered in response to the prompt (not on the command line) causes direct entry in explore mode, displaying a list of records in the file. The ? character may be followed by a single space and a selection template as described under the list records function to produce a filtered list of records.
The editor maintains an update lock on the record(s) being edited.
When editing a compiled dictionary item (C-type, I-type, or A/S type with a correlative), SED removes the compiled code thus forcing recompilation when the modified item is first referenced in a query.
To allow SED to be used internally from within applications without reducing system security, if the editor is started from a V-type VOC item that has E in field 4, the user is restricted to editing records specified on the command line and also cannot execute QM commands from within the editor.
SED Topics
Cursor movement and search functions Copying, deleting and restoring data |