^M instead of enter

Developer from somewhere

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