how to get text using console?