Hi Elias,
we have the HAVE_ANDROID macro already, so I can return from )OFF
without doing anything under android.
Note that cmd_OFF is called from other places as well, not
sure how they react if we return instead of exit()-ing.
/// Jürgen
On 06/12/2014 05:20 PM, Elias Mårtenson wrote:
On Android, one does not want )OFF to actually kill the process
itself, since this instantly kills everything, which is problematic
for an Android application.
Of course, I can check the command typed in the input field before
sending it to the interpreter, but with the arrival of commands being
executable, this is not a complete solution.
Would it make sense to add a callback that I can set that will be
called when the )OFF command is issued, and you only fall back to the
default behaviour if this callback is NULL?
Regards,
Elias