Skip to content

gurgeous/vectro

Repository files navigation

Vectro

The rpn calculator for your terminal.

logo

Screenshot

demo

What is this?

ci

Vectro is an rpn calculator for your terminal. Many people consider rpn easier and faster than traditional calculators. Vectro is written in Go using the excellent Bubble Tea package and distributed as a single executable.

Installation

On MacOS use brew:

$ brew install gurgeous/tap/vectro

For Linux and Windows, see the latest release on github. You'll find MacOS builds in there too, but they are difficult to run since they are unsigned.

Then run vectro like this:

$ vectro

Features

  • Responsive, works with many terminal sizes
  • Stack is saved across sessions
  • Niceties like Paste (yank) and Undo, error messages, etc.

Future Work

  • advanced ops (autocomplete, shift-ctrl-p)
  • animate when stack changes
  • theming

Operators Not Yet Implemented

  • abs / ln / square
  • deg/rad / cos/acos / sin/asin / tan/atan
  • lcm/gcd / prime (prime factorization)
  • floor/ceil/round
  • bin/oct/hex / << >> & | ^ ~
  • rgb / hsl / oklch

Special Thankss

These open source projects helped make Vectro possible. Thanks everybody!

About

rpn calculator for your terminal

Resources

License

Stars

Watchers

Forks

Contributors