fixed two cursor bugs: 1. cursor is drawn at the wrong position if the offset of the console is != 0 (thanks catastropher) 2. the cursor is drawn out of the console if the line is too long