Re: Wrong result of get_position()
- Posted by kinz Apr 26, 2011
- 1424 views
mattlewis said...
The interpreter simply tracks the number of characters output and updates based on that.
No, it doesn't. It uses some standard C-function from some lib of gcc, as far as I can see.
mattlewis said...
It's not UTF-8 aware, so it doesn't know that some of your characters are multi-byte. I'm not aware of a way to otherwise track the cursor position without using curses or something similar.
It doesn't use curses since 3.0
Regards
kinz