tcalc, simple pocket calculator in Bash

Опубликовано: 08 Октябрь 2014
на канале: Archived Yu-Jie Lin
295
3

tcalc [1] (via [2]) is a simple pocket/desktop calculator written in Bash. It has the basic mathematical operations +-*/, decimal point, that's about it.

Not sure the second line, with right arrow symbol, is for. Perhaps, some unfinished feature?

Note that it uses Unicode characters, such as a dot for decimal point and the border lines, so you may need proper fonts for your terminal emulator.

There is another calculator in terminal under the same name [3], which was written in C. Personally, I like the layout and visual look of this Bash version. It looks quite clean and, most importantly, simple.

Both have no mouse support, which is really one feature I always look for in a calculator in terminal. Because of it, I even created my own calculator, c (urcalc) [4].

$$#

2009-04-22 (according to timestamp on downloaded script)
In Bash
By Pedro Estarque
GPL (version unspecified)

[1]: http://www.estarque.com.br/pedro/tcalc
[2]: http://hints.macworld.com/article.php...
[3]:    • tcalc, simple ncurses-based desktop c...  
[4]: https://bitbucket.org/livibetter/c