function show_event(event) add_event(event,function(arg) print(event,arg) end) end show_event 'interactive-start' show_event 'interactive-end' show_event 'shell-load' show_event 'shell-unload' show_event 'load'