home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Extra 1997 #5
/
AmigaPlus_Extra-CD_5-97.iso
/
online-tools
/
mail
/
netmail
/
drivers
/
se.editor
< prev
next >
Wrap
Text File
|
1995-09-30
|
912b
|
50 lines
/*
** $VER: SE.editor 1.2 (30.9.95)
** Copyright (c) 1995 Riccardo Solmi
**
*/
OPTIONS RESULTS
OPTIONS FAILAT 21
cmd = 'SC:c/SE'
IF ~EXISTS(cmd) THEN RETURN 2
SELECT
WHEN UPPER(ARG(1)) = 'EDIT' THEN DO
PARSE ARG , file, port
port = 'SC_SE'
IF ~show('P', port) THEN DO
ADDRESS COMMAND
'Run >NIL: "'cmd'" "'file'"'
'WaitForPort' port
IF RC ~= 0 THEN RETURN 5
END
ELSE DO
ADDRESS VALUE port
'PM "O" "'file'\n"'
/*
'OW "'file'\n"'
*/
END
END
WHEN UPPER(ARG(1)) = 'SAVE' THEN DO
PARSE ARG , port
IF SHOW('P', port) & port = 'SC_SE' THEN DO
ADDRESS VALUE port
'PM "C"'
END
END
WHEN UPPER(ARG(1)) = 'CLOSE' THEN DO
PARSE ARG , port
IF SHOW('P', port) & port = 'SC_SE' THEN DO
ADDRESS VALUE port
'QU'
END
END
END
RETURN port