It seems specifically the Mosaic Terminal does delete the char in the command line automatically when backspaced ,so the sequence 20 08 is not necessary to send (in this case). As an experiment I commented out the space emit in
PFA_ACCEPT5: .dw XT_DUP ; ( -- addr k k ) .dw XT_EMIT ; ( -- addr k ) ;.dw XT_SPACE ; ( -- addr k ) ###### ;.dw XT_EMIT ; ( -- addr ) ###### .... and the backspacing and editing in the terminal now works as expected. However, it does not delete the amforth buffer properly: 1000 2000 + . "backspaced" and 2000 overwritten to 3000 1000 3000 + . gives 3000, and, .s gives (only after this backspacing and editing): > .s 0 16369 7 1 16371 7 2 16373 7 3 16375 7 4 16377 7 5 16379 7 6 16381 7 7 16383 384 ok So there is still something to tackle.. P. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Amforth-devel mailing list Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel