[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-apl] Android and the )OFF command
From: |
Juergen Sauermann |
Subject: |
Re: [Bug-apl] Android and the )OFF command |
Date: |
Thu, 12 Jun 2014 17:43:42 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 |
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