Import of r39601 from trunk. Update the cursor position and redraw if there was (someone else's, e.g. ROOT's) output on the console.
Changed paths: