I don’t think so
that’s the behaviour of comint itself
and someone has to change it there
it’s quite annoying and I have no idea why someone thought this is a good idea
guess you can check comint’s config options just in case