corrected setConsoleText method