Programming Guide


Invokes an external text editor for an array

int sm_fio_editor(char *array_name);

The name of the array whose contents you wish to edit.



sm_fio_editor invokes the editor specified in the behavior variable SMEDITOR and writes the contents of array_name to a temporary file. Each occurrence is written as a single line to that file.

When you exit the editor, Panther writes the edited text back to the array. Panther attempts to write each line in the file to a single occurrence. If any line is too long for its target occurrence, Panther breaks the line and writes the overflow text to the next occurrence. If the array contains too few occurrences to read the entire file, sm_fio_editor discards the excess text.