Update terminal lines and columns after each command.