How to check the printer on the terminal