Your flag definition is alright. But you have to place "on_esc = open_menu;
" inside a function, e.g. the main function or start_simulate. Event definitions are not allowed outside functions in Lite-C.


Always learn from history, to be sure you make the same mistakes again...