Hello, here is a session: (the prompt is “> “ and when I type <enter> a separator “ < “ is used)
amforth 5.8 ATmega16 > depth . < 0 ok > key? . < 0 ok > depth . < 0 ok > begin key? until < ok > depth . < 1 ok > . < 4516 ok > I have some questions: why the loop exits immediatly w/o typing any char on keyboard? What is the behaviour of “key?” I expected the mcu to freeze until I type a key. Am I wrong? What is “4516”? Another question about “key” (w/o question mark): > key < ?? > depth . < 1 ok > . < 27 ok > key . < 7 ok > key dup . < 7 ok > . < 27 ok > depth . < 0 ok > key dup . . < 7 27 ok > It seems “key” to eat a char from output buffer... > key < ?? <------ Here the result was ‘\nok\r\n> ‘ and not ‘\n > ok\r\n> ‘ as expected, a space was eaten > key . < 7 ok <------ Here, after I type an <ESC>, the result was ‘\n7 > ok\r\n> ‘ instead ‘\n27 ok\r\n> ‘ as expected, a “2” was eaten. Thank you for help Paolo --- Questa e-mail è stata controllata per individuare virus con Avast antivirus. https://www.avast.com/antivirus ------------------------------------------------------------------------------ _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel