terminal: Bug fix about the print location