fix Emacs: support command prompt.
add RDP