Re: Wrong result of get_position()

new topic     » goto parent     » topic index » view thread      » older message » newer message
kinz said...

Dear EU-devs and users,

There is one problem in 4.0.2 same as in 3.1.1.

If I do get_position() after puts() of some mixed Russian/English text or pure Russian text in the Linux console using the utf-8 encoding, text is ok, but result of get_position() is wrong.

The interpreter simply tracks the number of characters output and updates based on that. 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.

kinz said...

Esc-command {27} & "[6n" works ok, but I do not know how to intercept its output into some variable in my EU program without printing on screen.

I'm not aware of a way to do this.

Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu