make M-x work under term-mode
update