[Solved] Pressing enter produces ^M instead of a newline in the MAC/Linux
Error:- So while working on the Terraform and running terraform apply came across a issue where terraform was asking for the confirmation of yes and after entering yes , the terminal did took it as an Enter rather was printing ^M every time pressed enter. Due to which the terraform apply wont work. Cause:- The most likely issue causing this is the stty terminal line setting. To resolve this issue lookout for the solution below.