Request for bc
bc is a very useful calculator app, the most recent version has the gnu license. There is also a Lucent (Plan 9) version.
I try to avoid GNU licenses as much as possible (for compatibility with AppStore rules). I'll see if there is a BSD license version of bc.
Update: I found an implementation of POSIX bc with gnu extensions: https://github.com/gavinhoward/bc
I'm going to convert it into a framework for ios_system.
Good news. Thank you.
Michael
On Sun, 4 Nov 2018, at 06:16, Nicolas Holzschuch wrote:
Update: I found an implementation of POSIX bc with gnu extensions: https://github.com/gavinhoward/bc> I'm going to convert it into a framework for ios_system.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub[1], or mute the thread[2].
Links:
- https://github.com/holzschu/ios_system/issues/62#issuecomment-435613678
- https://github.com/notifications/unsubscribe-auth/AEMmh6jgdYgt--Lkxaozhj3jjH3SyNlKks5uret6gaJpZM4UdjGr
bc is now available as a separate framework, to be compiled here: https://github.com/holzschu/bc
To integrate with your favorite iOS terminal (blink, OpenTerm, others) you'll need to embed the framework and edit Resources/commandDictionary.plist, to add:
<key>bc</key>
<array>
<string>bc_ios.framework/bc_ios</string>
<string>bcdc_main</string>
<string>efhilqswx</string>
<string>no</string>
</array>
<key>dc</key>
<array>
<string>bc_ios.framework/bc_ios</string>
<string>bcdc_main</string>
<string>efhilqswx</string>
<string>no</string>
</array>
The integration with OpenTerm and/or Blink will take a bit longer. If you are interested in the interactive mode: it will only work in OpenTerm, and backspace doesn't work (this is true for all interactive commands; we're working on it).
@holzschu For backspace, we can store the input and send it to the stdin only when the user presses enter, almost all commands in ios_system don't need realtime input. I do it in Pisth and LibTerm
@holzschu many thanks, have built and run as directed. yes, the lack of line editing is an issue.