Something like this in your ~/.emacs will leave the terminal foreground and background untouched, i. e. emacs will use your terminal colors:
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such ...
You can also use custom-set-faces to just NOT set properties when using a tty, and then have other defaults for other types.
With the following, the default face gets foreground and background set unless the display type is tty, as it is when you run emacs -nw.
For some other things, I generally like the defaults, especially when using X11. I override a ...
Inspired from @ubolonton's answer, I was able to bind Super and Hyper (and add a supplementary Meta key) in urxvt with those 4 lines of ~/.Xdefaults:
and out of luck I dind't had to touch anything else to make it work.
On my keyboard (...
Hope the answer is still relevant.
If you are running Emacs in GNU OS, you can paste the contents of the clipboard (if properly configured; more information: (info "Clipboard")) in a term mode buffer (e.g. "*terminal*" buffer) in Emacs if you press <S-insert> (Shift key + Insert key) which is bound to the function "term-paste&...