I've got debian and when I'm in tmux, sometimes my input is taken literally. (FWIW I ssh into this computer.)
For instance, I was earlier doing:
sudo apt-get remove ftp
And when It would ask for y/n, I could input the letters just fine. But when I hit enter, I would get "^M^ instead. When I hit delete, I got "^?" instead.
When I closed tmux, everything worked just fine, and I could uninstall ftp.
Does anyone know why this is / how to fix it?
EDIT: This also happens when I am running code I've written in c++ and use std::cin. In tmux, the ^M key is displayed in the terminal, but when I'm not in tmux, the code runs as expected.