News for hackers. Stuff that matters.
Re:2-in-1 calculator app adds up to surprise hit for retired... by Georgelemental on Tuesday September 20, 2022 @12:04AM (#32907527)
qalc (https://github.com/Qalculate/libqalculate) is my command-line calculator of choice. Its killer feature IMO is the units support
Re:2-in-1 calculator app adds up to surprise hit for retired... by mrb on Tuesday September 20, 2022 @01:40AM (#32908054)
Very cool ! For units conversion I use GNU Units. But qalc seems to combine the benefits of both the Python REPL and GNU Units. I just tried the command-line version and noticed it doesn't support recalling the history (UP arrow) and editing calculations. This is unfortunately a deal-breaker :-( Don't have time to submit a patch.
Re:2-in-1 calculator app adds up to surprise hit for retired... by patrec on Tuesday September 20, 2022 @03:13AM (#32908649)
It does! Via readline. There must be a problem with your build.

Also, you can get this functionality for even your broken build (or other interactive commandline apps that have no edit history) by just doing something like:

    alias qalc='rlrwap qalc'
Re:2-in-1 calculator app adds up to surprise hit for retired... by mrb on Tuesday September 20, 2022 @03:25AM (#32908726)
Ah, i must not have compiled it with libreadline-dev... And I didn't know about rlwrap!