By "console", I'm going to mean you are referring to the Serial Monitor (Tools > Serial Monitor). The console is actually the black pane at the bottom of the Arduino IDE window that shows the compiler output, etc., but since your question wouldn't really make sense, I don't think that's what you mean.
There is a bug report/feature request about this in the issue tracker:
I notice this comment:
This behavior is new with 1.8.10 (or possibly earlier).
You could also consider using a serial terminal program other than the Arduino Serial Monitor. The only issue with that is you have to remember to close the serial port in the terminal software before every upload, otherwise the upload will fail. Serial Monitor does that automatically.