diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2023-02-03 17:43:45 -0330 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2023-02-03 17:43:45 -0330 |
| commit | 2ae82d57c87a7a46fcf38ed4c7803fbb5472f5ce (patch) | |
| tree | 26851c6f54dca21a655abd04b06ab0beceb62abe /pfc.1 | |
| parent | 0f6e1d41b37284dfcea5744ce81e78710b5a867c (diff) | |
| download | pfc-2ae82d57c87a7a46fcf38ed4c7803fbb5472f5ce.zip | |
add man pagev0.3.1
Diffstat (limited to 'pfc.1')
| -rw-r--r-- | pfc.1 | 52 |
1 files changed, 52 insertions, 0 deletions
@@ -0,0 +1,52 @@ +.TH PFC 1 pfc\-VERSION +.SH NAME +pfc \- postfix calculator +.SH SYNOPSIS +.B pfc +.SH DESCRIPTION +pfc is an interactive postfix, or reverse Polish notation, calculator. +.SH USAGE +.SS Keyboard commands +.TP +.B q +Quit. +.TP +.B [0..9] +Enter a digit into the input buffer. +pfc works with floating point numbers so the +.B . +character is OK as well. +.TP +.B Backspace +Remove a digit from the input buffer. +.TP +.B Enter +Push the number in the input buffer to the stack. +.TP +.B j +Swap the bottom (most recently pushed) item on the stack with the input buffer. +If the input buffer is empty this simply moves the most recently pushed item +back into the input buffer. +.TP +.B k +The same as +.BR j . +.TP +.B d +Delete the contents of the input buffer. +.SS Operators +.TP +.B + +Addition. +.TP +.B - +Subtraction. +.TP +.B * +Multiplication. +.TP +.B / +Division. +.TP +.B ^ +Exponentiation. |