TAPECALC(1)
๐ TAPECALC(1) โ the full-screen editing calculator ๐
okay bestie, so this is a User commands page for tapecalc, and no cap it's about to be your new emotional support calculator โจ
๐ธ NAME ๐ธ
tapecalc โ full-screen editing calculator. yes that's the whole vibe, a calculator that's also an editor, main character energy fr fr ๐
๐ SYNOPSIS ๐
tapecalc [options] [file-specifications]
โจ DESCRIPTION โจ
so tapecalc does fixed-point computation. lowkey iconic. it's designed to be your checkbook or expense-account balancing tool, which likeโฆ adulting, but make it cute ๐ซถ
tapecalc keeps a running result for each operation. you can scroll to literally any position in the expression list and modify the list โ no need to redo the whole thing, we're not doing that ๐
you enter data by typing numbers (decimal point optional, she's flexible), separated by operators.
an output transcript may be saved and reloaded for further editing. scripts are loaded from left to right (with the "output" processed first). noted ๐
โญ OPTIONS โญ
command line options of tapecalc are:
-hโ prints the list of options. help me help you bestie ๐-iinterval โ sets the compounding interval for interest computation. money math, love that for us ๐ธ-oscript โ specify the file in which to save the output transcript.-pnum โ sets precision (number of digits after the decimal place). how many digits, you decide ๐
๐ OPERATIONS ๐
๐งฎ Computations:
the operators are all single-character:
+โ begins an addition-โ begins a subtraction~โ negates the result*โ begins a multiplication/โ begins a division%โ begins an interest computation (uses interval): rate=number.$โ begins a sales-tax computation: rate=number.(โ opening parenthesis. this may enclose a unary'-', more parentheses, or data (implicit unary'+').)โ closing parenthesis, expects another operator, not data.=โ flushes out the current number, forces re-computation of the running result. the way it justโฆ recomputes ๐wโ increases the width used for numbers by one column, up to a platform-specific value.Wโ decreases the width used for numbers by one column, down to a minimum of6.
a space flushes out the current number-input, and (by default) sets the next operator to be the same as the current one. you may repeat the last arithmetic operation of any type:
aโ repeats the last'+'(default0).sโ repeats the last'-'(default0).nโ repeats the last'~'.mโ repeats the last'*'(default1).dโ repeats the last'/'(default1).iโ repeats the last'%'(default4).tโ repeats the last'$'(default4).
you may toggle the prefix operator of any number by typing a single character:
Aโ toggles the operator to'+'.Sโ toggles the operator to'-'.Nโ toggles the operator to'~'.Mโ toggles the operator to'*'.Dโ toggles the operator to'/'.Iโ toggles the operator to'%'.Tโ toggles the operator to'$'.
โ๏ธ Editing:
as you enter data, you may edit it. a backspace deletes the last digit of the current number (if it's visible โ gotta be visible, queen). use the arrow keys or vi-style 'h' and 'l' to move left and right within the line. other editing commands include:
uโ undoes the lastx/Xcommand (restricted to restoring the current data only). limited undo, we take what we can get ๐ญxโ deletes the current data. if the data is null, deletes the following line.Xโ deletes the current data. if the data is null, deletes the preceding line and moves up.oโ opens a new line after the current line.Oโ opens a new line before the current line.#โ edit the associated comment.
an "open" permits you to insert a new operator and data into the expression list. you may type an operator character (e.g., '+'), and continue with the new data, or an operator-repeat (e.g., 'A'). in either case, you may edit the new data, just as you would the old data. a 'u' (or other toggle, such as 'o', 'O', or 'q') typed after an open will undo the open (and close it). okay that's actually so satisfying ๐ฆ
๐ฑ๏ธ Scrolling/cursor movement:
Hโ move to the top line on the screen.Mโ move to the middle line on the screen.Lโ move to the last line on the screenCTL/Fโ scroll forward one screen.CTL/Bโ scroll backward one screen.jโ move forward one line.kโ move backward one line.z<CR>โ move the current line to the top of the screen.z.โ move the current line to the middle of the screen.z-โ move the current line to the bottom of the screen.
like vi, tapecalc allows you to jump to a particular line with a ":" command
:$โ jumps to the last entry:1โ jumps to the first entry.
๐ Scripts:
transcript files are formatted to permit line-oriented entries:
<operator><value><blank><ignored><blank># comment
the transcripts saved by tapecalc contain the running result in the "ignored" part. to exit without saving a transcript, type 'Q'. a normal exit, by typing 'q', saves the list of operators, data (and running result) in the specified file. capital letter matters, bestie, do not play ๐
you can read and write scripts without leaving tapecalc:
:efile โ clears the current script and reads a script from the file.:fโ shows the current script name.:rfile โ reads a script at the current entry:wfile โ writes a script to the specified file.
๐ง ENVIRONMENT ๐ง
tapecalc runs in a portable UNIXยฎ environment. she travels well ๐
๐ FILES ๐
tapecalc is a single binary module, with a help file tapecalc.hlp installed in the same directory.
๐ BUGS ๐
it would be nice to be able to change the precision within the program. in particular, the interest and sales tax computations would be more useful if their precision was independent of the running total. soโฆ noted, not fixed, we move ๐ธ
๐ AUTHORS ๐
Thomas E. Dickey
๐ฅ SEE ALSO ๐ฅ
and that's the whole page bestie, you're literally a calculator girlie now ๐โจ
this was the TAPECALC(1) page โ source/version and date, from the footer: 2024-01-10. mwah, go balance something ๐
๐ฆ where this page comes from
- debian trixie: tapecalc 20240110-1 ยท MIT-old
- ubuntu noble: tapecalc 20240110-1 ยท MIT-old
- ubuntu questing: tapecalc 20240110-1
- ubuntu resolute: tapecalc 20240110-1build1 ยท MIT-old
- ubuntu stonking: tapecalc 20240110-1build1 ยท MIT-old
- Copyright 1995-2022,2024 by Thomas E. Dickey
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms