Added logic for lines/columns in terminal vs. console :D