I currently have
(setq ns-function-modifier 'hyper)
and it works perfectly fine on my GUI Emacs on MacOS, but it becomes a problem in terminal emacs, where it doesn't recognize the key. I was wondering how to fix this or to have my own command prefix.