Hi, again, Joel,
I think your problem lies in how Gforth
uses the shell in Android. 'Ping' without options runs
interactively, but Gforth waits for the command to
terminate, before unloading the piped output to the terminal.
To get by this you can specify a packet count ( -c# ) and/or a
deadline ( -w#) ( in seconds ), ensuring that 'ping' terminates.
You might try defining 'ping' in Gforth to fix (for example)
a 5 second deadline, as in,
variable line-args
: ping ( "command-line-arguments" )
s" ping -w5 " line-args $!
'#' parse line-args $+!
line-args $@ cr system ;
I'm not sure how this works out if you give a
second -w option, and I'll leave it to those more
knowledgable of Android to tell you how to get the shell
to interact on a line-by-line basis with Gforth, or if that's
possible.
Hope this helps.
Sincerely,
James Gere