Re: Wrong result of get_position()
- Posted by kinz Apr 26, 2011
- 1437 views
Is \e6n] supposed to display the coordinates to the screen?
Yes it does.
If it does, you should expect that the act of displaying the value should change the value.
No, it doesn't see itself, it counts the positions of my letters only.
I can display these characters in jEdit but when I run this on my Windows console, the position values are correct but the characters are all wrong.
The Windows console doesn't work as utf-8 console. It is pure one-byte console. I do not have any problems there. I use cp866 and it is ok.
But Linux console is the utf-8 thing, so I have to recode cp866 to utf-8 to get Russian on the Linux screen. Or I can to do "unicode_stop" on that console, then load font and map, then use pure cp866. But after "unicode_stop" MC doesn't work properly.
Maybe you can tell us where on the screen the cursor goes on your screen.
Try please the Linux console and you'll see that picture yourself. And different Linux consoles give different results.
Regards
kinz