aboutsummaryrefslogtreecommitdiffstats
path: root/pfc.1
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2023-02-03 17:43:45 -0330
committerSam Anthony <sam@samanthony.xyz>2023-02-03 17:43:45 -0330
commit2ae82d57c87a7a46fcf38ed4c7803fbb5472f5ce (patch)
tree26851c6f54dca21a655abd04b06ab0beceb62abe /pfc.1
parent0f6e1d41b37284dfcea5744ce81e78710b5a867c (diff)
downloadpfc-2ae82d57c87a7a46fcf38ed4c7803fbb5472f5ce.zip
add man pagev0.3.1
Diffstat (limited to 'pfc.1')
-rw-r--r--pfc.152
1 files changed, 52 insertions, 0 deletions
diff --git a/pfc.1 b/pfc.1
new file mode 100644
index 0000000..28e4d5c
--- /dev/null
+++ b/pfc.1
@@ -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.