Never forget: xon/xoff is for *single* character exchange - send one,  
get echo,  check it, send another one...
Sender must interpret *each* echo character immediately and stop at  
xoff at once.
Use xon/xoff to connect two amforth devices via TXD/RXD.
Or on a PC use a sending tool able to do that. amforth shell is such  
a tool.

If you send ascii to amforth using a terminal emulator on your PC via  
a USB-serial converter, forget xon/xoff.
  There will be huge blocks of characters already send to the  
pipeline of USB, overrunning your forth target, before any terminal  
emulator will notice the xoff.

Or do you have a USB-serial converter that handles xon/xoff ?

Michael



Am 10.08.2014 um 14:34 schrieb Paolo Garro:

> Hi Matthias,
> Does REFILL load a single line?
> In a multiline colon definition is it called for each line?
> If so I think the best place to handle XON/XOFF is QUIT itself.
> At the begin of the loop after calling REFILL assert XOFF and  
> before closing the loop assert XON.
> That way transmission is blocked while the interpreter is working  
> including the case of an error answer (xxx ?? -nn nn) and, on the  
> other side, I will receive an XON at the end of each answer.
>
> Paolo
>
> Inviato da Samsung Mobilenull
> ---------------------------------------------------------------------- 
> --------
> _______________________________________________
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel


------------------------------------------------------------------------------
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to