Fixed terminal text going out of the terminal window