Refactor ConsoleBuffer

renamed toScreenBuffer