Report question

Question: How to get the caret column (not pixels) position in a textarea, in characters, from the start?