Note:
A mount file's icon Tool Types, if any, override parameters of the same name in the mount file itself.
|
Example 1:
1> MOUNT PIPE:
This looks for the mount file DEVS:DOSDrivers/PIPE and processes it if found. If DEVS:DOSDrivers/PIPE does not exist, MOUNT looks for SYS:Storage/DOSDrivers/PIPE. If this also fails, then MOUNT looks for a PIPE: entry in DEVS:MountList.
Example 2:
1> MOUNT Work:Devices/PIPE
This looks for a PIPE mount file in Work:Devices.
Example 3:
1> MOUNT PIPE: FROM SYS:Mydevs/MountList
This scans for a PIPE entry in SYS:Mydevs/MountList.
See Appendix B for further information on MountLists.
NEWCLI
Opens a new Shell window.
Format
|
NEWCLI [<window specification>] [FROM <filename>]
|
Template
|
WINDOW,FROM
|
Location
|
Internal
|
NEWCLI starts a new Shell process. It is the same as using the NEWSHELL command.
NEWSHELL
Opens a new Shell window.
Format
|
NEWSHELL [<window specification>] [FROM <filename>]
|
Template
|
WINDOW,FROM
|
Location
|
Internal
|
The new Shell window becomes the currently-selected window and process. The new window has the same current directory, prompt string, path, local environment variables, and stack size as the one from which it is invoked. However, each Shell window is independent, allowing separate input, output, and program execution.
The window can be sized, dragged, zoomed, and depth-adjusted like most other Amiga windows.
To create a custom window, you can include the <window specification> argument. Specify the initial dimensions, location, and title of the window with this <window specification> syntax:
CON:x/y/width/height/title/options
where:
x
|
Is the number of pixels from the left edge of the screen to the left border of the Shell window. Use a value (//) to specify the minimum possible pixels.
|
y
|
Is the number of pixels from the top of the screen to the top of the Shell window. Use no value (//) to specify the minimum possible pixels.
|
width
|
Is the width of the Shell window, in pixels. Use no value (//) to specify the full width of the screen.
|
height
|
Is the height of the Shell window, in pixels. Use no value (//) to specify minimum possible height.
|
title
|
Is the text that appears in the Shell window title bar.
|
Use slashes to separate the parameters and options. If any spaces appear in the specification argument, the entire argument must be enclosed in double quotation marks (").
The allowable options are:
AUTO
|
The window automatically appears when the program needs input or produces output. With the Shell window, it opens for input immediately. The window can only be closed with the ENDSHELL command. Selecting the Shell's close gadget closes the window, but it re-opens immediately since it is expecting input.
|
ALT
|
The window appears in the specified size and position when the zoom gadget is clicked. The four parameters must be separated with slashes (for example, ALT30/30/200/200).
|
BACKDROP
|
The window appears on the backdrop, behind all the Workbench windows. This Shell window cannot be brought to the front of the screen; you have to resize the Workbench windows to see it.
|
CLOSE
|
The window has all the standard gadgets, including a close gadget. This is the default for Shell windows, but you must specify it to get a standard Shell if you use the WINDOW argument.
|
INACTIVE
|
The window opens, but is not made the active window.
|
NOBORDER
|
The window opens without any left or bottom window border. Only the zoom, depth, and sizing gadgets are available.
|
NOCLOSE
|
The window does not have a close gadget. If you open a console normally, there is no close gadget. If you open a console using the AUTO option, there is automatically a close gadget on the window.
|
NODEPTH
|
The window has no window depth gadget.
|
NODRAG
|
The window cannot be dragged. It has zoom, depth and sizing gadgets, but no close gadget.
|
NOSIZE
|
The window only has a depth gadget.
|
SCREEN
|
The window opens on a public screen. The screen must already exist. You must specify the name of the screen after the SCREEN keyword.
|
SIMPLE
|
If you enlarge the window, the text expands to fill the newly available space, allowing you to see text that had been scrolled out of the window. This is the default for standard Shells.
|
SMART
|
If you enlarge the window, the text does not expand to fill the newly available space. This saves memory.
|
WAIT
|
The window can only be closed by selecting the close gadget or entering Ctrl+\. If WAIT is the only option, there is no close gadget.
|
NEWSHELL uses the default startup file S:Shell-startup, unless a FROM file name is specified. S:Shell-startup is a standard AmigaDOS script file. For example, you can have several different Shell-startup files, each having different command aliases. You can call such customized Shell environments with FROM.
The NEWCLI command has the same effect as NEWSHELL; it invokes a new Shell process.
Example 1:
1> NEWSHELL
opens a new Shell window with the default window specification.
Example 2:
1> NEWSHELL "CON://640/200/My Shell/CLOSE"
A window starting in the upper left corner of the screen and measuring 640 pixels wide and 200 pixels high opens. The window is titled My Shell and it has a close gadget. The entire argument is enclosed in quotation marks because the title contains a space. If you add the command to your User-startup file, a Shell window opens automatically when your Amiga is booted.
Example 3:
1> NEWSHELL FROM S:Programming.startup
opens a new Shell, but instead of executing the Shell-startup file, the Programming.startup file is executed. You can have aliases and prompt commands in the Programming.startup file that are used only when you are programming.
For more examples using NEWSHELL, see Chapter 8.
PATH
Controls the directory list that the Shell searches to find commands.