Update the console cursor position code to reflect the changes.