aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-01-04 17:21:00 -0500
committerB. Watson <urchlay@slackware.uk>2024-01-04 17:21:00 -0500
commit6ee03a61e3d3070b9975655ee4fe525543ed979f (patch)
tree11d87d2601020bedbaabe3a2b295908982e2ed54
parent96a07d81eebb9e4bd7b3e906162ddd1f8db4d367 (diff)
downloadhcalc-6ee03a61e3d3070b9975655ee4fe525543ed979f.tar.gz
Document u key.
-rw-r--r--hcalc.18
-rw-r--r--hcalc.h1
-rw-r--r--hcalc.rst8
3 files changed, 15 insertions, 2 deletions
diff --git a/hcalc.1 b/hcalc.1
index c7eddc9..e6ea5ea 100644
--- a/hcalc.1
+++ b/hcalc.1
@@ -159,9 +159,15 @@ once in \-2.
\fIDEL\fP key: delete the rightmost digit.
.TP
.B \fBC\fP \fBEscape\fP
-\fICLR\fP key: clears the number.
+\fICLR\fP key: clears the number and any pending operation.
+.TP
+.B \fBu\fP
+Clears the number, same as backspacing over it, but does not
+clear any pending operation. There is no button in the UI for
+this, so it can\(aqt be done with the mouse.
.TP
.B \fBD\fP \fBH\fP \fBO\fP \fBB\fP
+\fIDEC\fP \fIHEX\fP \fIOCT\fP \fIBIN\fP keys.
Set the number base to decimal, hex, octal, or binary. The
number currently displayed is converted into the new base.
These are capital letters (hold down Shift).
diff --git a/hcalc.h b/hcalc.h
index a469c9a..ce43621 100644
--- a/hcalc.h
+++ b/hcalc.h
@@ -58,5 +58,6 @@ void process_input();
void load_config(void);
void save_config(void);
void show_value();
+void bell(void);
#define MAXCHARS 15
diff --git a/hcalc.rst b/hcalc.rst
index 3bd0bef..4b3fba3 100644
--- a/hcalc.rst
+++ b/hcalc.rst
@@ -147,9 +147,15 @@ KEYBOARD
*DEL* key: delete the rightmost digit.
**C** **Escape**
- *CLR* key: clears the number.
+ *CLR* key: clears the number and any pending operation.
+
+**u**
+ Clears the number, same as backspacing over it, but does not
+ clear any pending operation. There is no button in the UI for
+ this, so it can't be done with the mouse.
**D** **H** **O** **B**
+ *DEC* *HEX* *OCT* *BIN* keys.
Set the number base to decimal, hex, octal, or binary. The
number currently displayed is converted into the new base.
These are capital letters (hold down Shift).