If you start an Emacs session by selecting Emacs/A+ from the main menu, A+ can be invoked within it (with the resulting buffer in a-mode) by pressing the function key F4. When in Emacs, you can modify the effect of the F4 key by entering Control-c a.Concurrent Sessions
You can run several Emacs A+ sessions concurrently. You can run A+ in several concurrent Emacs sessions. Moreover, to run concurrent A+ sessions within a single Emacs session, after starting one A+ session, you can rename it by pressing Escape x and entering M-x rename-buffer newname, then perhaps change to another release using Control-c a, then start another session by pressing F4, then perhaps rename that session and start another one, and so on.
A+ can also be invoked from a shell command line, by a+ [options] [script [args]], where the meaning of the parameters is as follows.ExamplesThe PWD (environment name) environment variable is set on startup.
- options:
-d display
Set the environment variable DISPLAY to display.
-h
Set the heap size to 128 megabytes. CAUTION: Do not use this flag unless it specifically solves a memory related problem.
-m memmap
memmap is one of the memory mapping methods for atmp described in the "Work Area" section (Releases 2.42 and 4.09 on).
-q
Suppress the banner (Releases 2.42 and 4.09 on).
-w wssize
Set the initial workspace size to wssize (in megabytes).
- script:
The name of the script to be loaded when A+ is invoked.
- args:
The parameter list for the script, which is made available to the script by the special system variable _argv.
The value of _argv is a vector of character strings.
Following the Unix and C language conventions,
0Ø_argv is the name of the script,
1Ø_argv is the first parameter,
2Ø_argv is the second, etc.
/usr/local/bin/a+
Invoke A+ using all of the defaults (the default workspace size is 1 MB, or 220 bytes.)/usr/local/bin/a+ -w 100
Invoke A+ with a 100MB virtual workspace./usr/local/bin/a+ -d workstation-name:0.0 graphit expertlevelInvoke A+ with the environment variable DISPLAY set to workstation-name:0.0, and load the script named graphit with the parameter expertlevel. The value of _argv in the A+ session will be ("graphit";"expertlevel").
doc@aplusdev.org | © Copyright 19952001 Morgan Stanley Dean Witter & Co. All rights reserved. |