Re: Wrong result of get_position()

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu