home *** CD-ROM | disk | FTP | other *** search
-
- (Editor's note: I placed the rest of Jim's files in 'scripts/SASC_Scripts'.)
- ( Also, the Installer will prompt about installing these. )
-
-
- Using Textra with SAS/C
- -----------------------
-
- by James Cooper, SAS Institute, Inc.
-
-
- Textra is extremely easy to use with the SAS/C compiler, in place of the
- SAS Editor (named SE).
-
- Copy the supplied SCMSG file to ENV:sc. Then skip to Step 2 below.
- (Ed-note: You'll want to edit the SCMSG file and set the
- EDITCOMMAND line to point to your Textra. Look at the file.
- You'll find SCMSG in the 'scripts/SASC_Scripts' dir AND
- appended to the end of this ReadMe file).
-
- If you can't find this file, or need to regenerate it (or just want to do
- it yourself "by hand"), do the actions specified in Step 1:
-
- 1) Run the SCMSG program from a CLI or Shell.
-
- a) When the SCMSG window opens, use the right mouse button to
- access the "Project/Set Options" menu item. Several items in
- the options window that need to be changed:
- (in all options below, do not include the double-quote marks
- when entering data into the string gadgets)
-
- i) PortName - edit this string gadget to contain
- "TEXTRA".
-
- ii) EditCommand - edit this string gadget to contain
- "Textra %f". If you don't normally have a path to
- the Textra executable, you will need to supply the
- complete path, as in "Work:Editors/Textra/Textra %f".
-
- iii) GotoFile - edit this string gadget to contain
- "OPENFILE %f"
-
- iv) GoToLine - edit this string gadget to contain
- "GOTOXY1 1 %l"
-
- b) Now click on the "Use" gadget at the bottom of the window.
-
- 2) Play with it, run a sample compile, etc. to see if everything is acting
- the way you expected it to. Once you are satisfied it is OK, you will
- need to
-
- (If you are running AmigaOS 2.0+)
-
- 1> copy env:sc/SCMSG envarc:sc
-
- -OR-
-
- (If you are running AmigaOS 1.3 or less)
-
- 1> copy env:sc/SCMSG sc:env
-
- 3) If you normally start Textra from the command line (as opposed to
- clicking on an Icon on Workbench), you may wish to copy the ARexx scripts
- provided to your REXX: directory, as in
-
- 1> copy scripts/SASC_Scripts/#?.textra rexx:
-
- (Ed-note: The Textra Installer will install the SAS/C scripts if you wish).
-
- Now, you're ready to go! That's all the installation necessary to get the
- SAS/C compiler to use Textra in place of SE.
-
- Of course, there are a few other things you might wish to do, such as
- being able to start the compiler from the editor, etc., but these are
- easily handled through ARexx scripts. I have included a couple of example
- scripts to get you started. Textra has a very rich set of ARexx commands,
- so it should be very easy for you to make it do whatever you want it to do
- with SAS/C (or almost anything else, for that matter! :-).
-
- CTRLB.textra - 'B'uild current project. This is the easy
- way to restart the compiler after you have
- made changes to the source.
- CTRLF.textra - 'F'ind current symbol. Similar to the
- script provided with SE, this will allow
- you to place the cursor on a C symbol
- (such as 'strlen', et. al.), and GSTs will
- be searched for that symbol, with a new
- window popping up with the file that
- symbol is defined in if found.
- CTRLN.textra - Step to 'N'ext compiler error/warning.
- CTRLP.textra - Step to 'P'revious compiler error/warning.
-
- ------------------ SCMSG Data File ------------------------
- LEFT 0
- TOP 11
- WIDTH 639
- HEIGHT 55
- NOHIDDEN
- NOREXXONLY
- NOAUTOEDIT
- PORTNAME TEXTRA
- EDITCOMMAND Work:Utilities/Textra/Textra %f
- GOTOFILE OPENFILE %f
- GOTOLINE GOTOXY1 1 %l
- NOPUBSCREEN
- ------------------ end of SCMSG Data File -----------------
-