\fBwmcalc\fP is a program designed to act as a simple calculator offering basic operations like addition, subtraction, multiplication, division, square and squareroot. It is different from other calculator programs, however in that it is designed to take up very little desktop space. As such, it can be left running on the desktop at all times. It is intended to placed in the WindowMaker dock, or in Wharf under Afterstep, though it should run as well under any window manager.
\fB*IMPORTANT*\fP: this calculator, due to its simple target, does not respect the proper mathematical operations order, and they are executed in the order they are inserted.
Reinitialize the calculator. (100 = Left Mouse Button on Display)
.TP
.B200
Clear all the memory registers (0..10)
.TP
.B300
Clear the current number being entered only
.TP
.Bx11
Start a program defined by CalcStart variable in config file
.TP
.B1yy
Perform function shown on button
.TP
.B2yy
Recall number from memory location [0-9] to display for calculation if yy = 2,3,4, 7,8,9, 12, 13, 14, 17 otherwise, can run a user-defined function (not implemented)
.TP
.B3yy
Store Displayed number in memory location [0-9] if yy = 2,3,4, 7,8,9, 12,13,14, 17 otherwise, can run a user-defined function (not implemented)
.TP
.B1xx
Hopefully the other functions are obvious from their button graphics.
system wide wmbutton configuration file which will be used for all users who start wmcalc the first time.
.TP
.I~/.wmcalc
The configuration file (.wmcalc) is written by wmcalc whenever the user requests to store a number to memory. This file is automatically created the first time a user launches wmcalc with /etc/wmcalc.conf as template. As a part of this process, a file is written to /tmp. If /tmp is not accessible, it tries in the user's home directory, as defined by the environment variable HOME. This file is erased as soon as it is written over the main configuration file.
.SHCONFIGURATION
.TP
The configuration file is case sensitive. A # starts a comment, and lines consisting entirely of whitespace are ignored. The syntax is simply:
\fBmem0 - mem9\fP Calculator Memory Locations. These must all exist, though they may be in any order.
.TP
\fBCalcStart\fP The CalcStart variable is intended to allow the user to start a larger calculator for more complicated needs. Everything after the tab '\\t' character is sent unmodified in a system() call, so anything you can type at the command prompt may be put here.
.TP
\fBImagChar\fP The ImagChar variable allows the user to choose between 'i' and 'j' to represent the sqrt(\-1).
.SHAUTHOR
wmcalc was written by Edward H. Flora <ehflora@access1.net>, and is licensed under the terms of the GNU General Public License.
.TP
This manual page was written by Gordon Fraser <gordon@freakzone.net>, for the Debian GNU/Linux system (but may be used by others).