Skip to content
Astrohacker

← Projects

Archived project · Scientific calculator

AhCalc

A scientific calculator for TermSurf.

AhCalc put a calculator beside the shell, using the same pane system as the browser and plotting tools. A user could do a calculation without leaving the terminal.

Astrohacker published the calculator as its own Homebrew formula. Its release cycle was separate from TermSurf’s.

How it works

  • Check a calculation beside the shell

    AhCalc opened a scientific calculator in the current TermSurf pane. It gave a user a graphical way to check a numerical result while keeping the command that produced it in view.

  • Separate the calculator from its host

    The calculator had its own formula and version. Its prebuilt package did not require a JavaScript toolchain. Displaying its interface still required a TermSurf host.

Test the graphical path

Starting ahcalc inside TermSurf, entering a calculation, and checking the displayed result exercised the host connection and the calculator. A version check outside the terminal verified the executable but could not verify the graphical path. For an agent updating the host, the calculator was a small client with an observable pass condition: the result appears in the same pane.

ahcalc

Project history

  1. The TermSurf release summary listed the calculator among its companion tools. October release summary

  2. The calculator’s separate repository published 0.4.3 and documented its independent formula. AhCalc 0.4.3

Sources