Sometimes my terminal outputs ^M when pressing enter. Running the command stty sane fixes it. Found the answer here
Developer from somewhere
Sometimes my terminal outputs ^M when pressing enter. Running the command stty sane fixes it. Found the answer here