You could use a Finite State Machine module. AFAIK, there is one included in the latests amforth release br Rafael
________________________________ De: Hannu Vuolasaho <vuo...@msn.com> Para: "amforth-devel@lists.sourceforge.net" <amforth-devel@lists.sourceforge.net> Enviado: Sábado 24 de agosto de 2013 15:55 Asunto: [Amforth] Making menus to LCD Hi! I'm working with 16x2 LCD and U/D/L/R/C buttons. I was wondering if someone has done the menus smart way. I believe it could be done with some kind of CREATE DOES> trick which makes them. I'm thinking something like this as an interface : :noname ." Top row" ; :noname ."Bottom row" ; ' up_action ' down_action ' left_action ' right_action ' center_action add-menu my_new_menu The actions could be another menus or actions for some data. Or, There could be array of structs and those items could be added there with add-menu. Anyway how this should be taken care? Currently I'm having hard time with ugly spagheti code. Best regards, Hannu Vuolasaho ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. Consolidate legacy IT systems to a single system of record for IT 2. Standardize and globalize service processes across IT 3. Implement zero-touch automation to replace manual, redundant tasks http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel