Add `term-send-esc' and binding with 'C-c C-e', send esc is useful for some program, such as vim. ;)