Home Page The Club Computers News Links Glossary EYAWTK
Before Amiga Background ICS OCS ECS AGA ??? PPC
U-Boot SLB Linux Amiga OS Dual Boot Motherboards Peripherals Other
Initialisation Installation OS4 Updates About OS4 File Systems Networking Printing Other
Introduction File System Workbench Preferences Commands Error Msgs Miscellaneous

AmigaOS 4.0 - About OS4 - Commands

CALCULATOR Utility
Purpose: To provide an on-screen calculator.
Format: CALCULATOR [PUBSCREEN <public screen name>] [TAPE=<window>] [COMPUTE=<computation>]
Template: PUBSCREEN, TAPE/K, COMPUTE/K/F
Path: SYS:Utilities/Calculator
CALCULATOR starts the Calculator program. You can cut and paste the output of the Calculator into any console window, like the Shell or ED.

PUBSCREEN can be used to specify a <public screen name> where the Calculator should open.

TAPE enables you to create a Calculator window of a specific size in which to display your input and output. The specification is in the form of:

TAPE=RAW: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 window. Use 'no value' (//) to specify the minimum possible pixels.
  y is the number of pixels from the top of the screen to the top border of the window. Use 'no value' (//) to specify the minimum possible pixels.
  width is the width of the window, in pixels.
  height is the height of the window, in pixels.
  title is the text that appears in the window title bar.
  options AUTO The window automatically appears when the program needs input or produces output. With the Shell window, it will open for input immediately. The window can only be closed with the ENDSHELL command. Selecting the Shell's close gadget will close the window, but it will re-open immediately since it is expecting input.
CLOSE The window has all the standard gadgets, including a close gadget.
BACKDROP The window appears on the backdrop, behind all of the Workbench windows. The only gadget in the window border is the zoom gadget. This Shell window cannot be brought to the front of the screen; you have to resize the Workbench windows to see it.
NOBORDER The window opens without any left or bottom window border. Only the zoom, depth, and sizing gadgets are available.
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 will open 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 will expand to fill the newly available space, allowing you to see text that had been scrolled out of the window.
SMART If you enlarge the window, the text does not expand to fill the newly available space.
WAIT The window can only be closed by selecting the close gadget. (An example of this is the Execute Command Workbench Output Window.)
COMPUTE can be used to specify a <computation> that will be executed and returned to the process.

To exit the program, select the window's close gadget.

Example 1:

3.OS4:> CALCULATOR runs the Calculator.

Example 2:

3.OS4:> CALCULATOR TAPE=RAW:500/0/200/200/CalculatorTape/Close runs the Calculator with an add tape showing all of the calculations entered using a window with the dimensions and screen position specified. This is illustrated by the following display:

Example 3: 3.OS4:> CALCULATOR COMPUTE=1234*5678/9-72
778444.88888889
runs the Calculator performs the computation specified.


Return to Commands Selection

Disclaimer: Amiga Auckland have prepared the above information for the use of its members based on our experiences and as such is subject to revision at any time. Amiga Auckland cannot guarantee any of the information and cannot be held accountable for any issues that may result from using it.


Copyright 2006 Amiga Auckland Inc. All rights reserved.
Revised: December 24, 2006.