ios_system icon indicating copy to clipboard operation
ios_system copied to clipboard

Request for bc

Open michaelrourke opened this issue 7 years ago • 6 comments

bc is a very useful calculator app, the most recent version has the gnu license. There is also a Lucent (Plan 9) version.

michaelrourke avatar Jun 07 '18 00:06 michaelrourke

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.

holzschu avatar Jun 07 '18 09:06 holzschu

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.

holzschu avatar Nov 03 '18 19:11 holzschu

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:

  1. https://github.com/holzschu/ios_system/issues/62#issuecomment-435613678
  2. https://github.com/notifications/unsubscribe-auth/AEMmh6jgdYgt--Lkxaozhj3jjH3SyNlKks5uret6gaJpZM4UdjGr

michaelrourke avatar Nov 03 '18 19:11 michaelrourke

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 avatar Nov 04 '18 14:11 holzschu

@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

ColdGrub1384 avatar Nov 04 '18 21:11 ColdGrub1384

@holzschu many thanks, have built and run as directed. yes, the lack of line editing is an issue.

michaelrourke avatar Feb 12 '19 06:02 michaelrourke