Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2013-03

Text IDE, the displayed cursor position

6 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ebeling

I am a low-level-user, who uses fpc only occasionally for small programs and only with 10 % of its functionality. For my purposes, the text IDE seems to be adequate. But I stumble upon a basic functionality: the displayed cursor-position.

When I start a new program by clicking the button "new", the cursor stands in the upper left corner, but its position is displayed as "1:976".

This magic column number may be the difference between 2000 and 1024.

This behavior exists only at the 64-bit versions of fpc.

I found it first in 2010-07-28 with fpc 2.4.0 and wrote a notice with screenshots at:
Community/ Forum/ Developing for Linux/ The Terminal/ with the headline: "IDE shows strange cursor position".

Until now, there was no comment to this notice. So I don't know, if I am the only person with this problem, and if the reason is at the user (bad configuration), at the operating system, at fpc or where else.

Now with fpc 2.6.2 and IDE version 1.0.12 for me the problem still exists. A screenshot is attached.

My configuration:

processor: AMD Athlon 64 or Intel P 8700
OS: OpenSuse 11.2 to Opensuse 12.2, all for 64 bit desktop: gnome with the screen-formats: 80 x 24 to 132 x 43 characters, also xterm

My observation:

The indicated cursor coordinates "line" and "column" are not independent.

When the cursor stays in the first column and only steps down, the indicated column number is:
"976" in the lines 1 to 9
"808" in line 10
"825" in line 11
"842" in line 12.

I would be happy, if someone could confirm my observations or give me a hint, what I am doing wrong.

Hans Ebeling

Reply by email

Reinier Olislagers
to Ebeling
Ebeling wrote 10 lines
I am a low-level-user, who uses fpc only occasionally for small programs and only with 10 % of its functionality. For my purposes, the text IDE seems to be adequate. But I stumble upon a basic functionality: the displayed cursor-position. When I start a new program by clicking the button "new", the cursor stands in the upper left corner, but its position is displayed as "1:976". This magic column number may be the difference between 2000 and 1024.

<snip>

I would be happy, if someone could confirm my observations or give me a hint, what I am doing wrong.

I remember an item on the bugtracker about cursor position. You might want to search that. As far as I remember, a patch was attached which you could try.

Reply by email

Ebeling
to Reinier Olislagers
Reinier Olislagers wrote 21 lines
On 1-3-2013 15:03, Ebeling wrote: > I am a low-level-user, who uses fpc only occasionally for small programs > and only with 10 % of its functionality. For my purposes, the text IDE > seems to be adequate. But I stumble upon a basic functionality: the > displayed cursor-position. > > When I start a new program by clicking the button "new", the cursor > stands in the upper left corner, but its position is displayed as > "1:976". > > This magic column number may be the difference between 2000 and 1024. <snip> > I would be happy, if someone could confirm my observations or give me a > hint, what I am doing wrong. I remember an item on the bugtracker about cursor position. You might want to search that. As far as I remember, a patch was attached which you could try. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Thank you for your response!

Now I see:

It is not only my problem (since fpc 2.4.0).

The bug is registrated for fpc version 2.6.2 concerning Linux as

023956: incorrect display of the cursor in the window edit code and 023957: incorrect procedure TIndicator.Draw for x86_64

As I allways install the binary form of fpc, I hope the problem will be fixed with the next major release.

thank you again, Hans Ebeling

Reply by email

Graeme Geldenhuys
to Ebeling: I am a low-level-user, who uses fpc only occasionally for small programs and only with 10…
Ebeling wrote
When I start a new program by clicking the button "new", the cursor stands in the upper left corner, but its position is displayed as "1:976".

Just to confirm, I see the exact same thing under 64-bit FreeBSD using FPC 2.6.0

Show quoted text 7 lines
When the cursor stays in the first column and only steps down, the indicated column number is: "976" in the lines 1 to 9 "808" in line 10 "825" in line 11 "842" in line 12.

I see this too. If I keep pressing ENTER, after line 10, I get all strange numbers. Some in the 800's and then again in the 900's, then back to the 800's etc.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Bernd Mueller
to Graeme Geldenhuys
Graeme Geldenhuys wrote 8 lines
On 2013-03-01 14:03, Ebeling wrote: > When I start a new program by clicking the button "new", the cursor > stands in the upper left corner, but its position is displayed as > "1:976". Just to confirm, I see the exact same thing under 64-bit FreeBSD using FPC 2.6.0

no problem with FPC 2.6.2 under (32-bit) Windows 98 ;-)

Regards, Bernd.

Reply by email

Pierre Free Pascal
to Ebeling: Thank you for your response! Now I see: It is not only my problem (since fpc 2.4.0). The…

The bug is indeed 64-bit specific...

Hopefully fixed in rev 23704,
http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=23704

Pierre Muller

Show quoted text 55 lines
-----Message d'origine----- De : [mailto:fpc-pascal- De la part de Ebeling Envoyé : mardi 5 mars 2013 18:59 À : FPC-Pascal users discussions Objet : Re: [fpc-pascal] Re: Text IDE, the displayed cursor position Am Dienstag, den 05.03.2013, 14:20 +0100 schrieb Reinier Olislagers: > On 1-3-2013 15:03, Ebeling wrote: > > I am a low-level-user, who uses fpc only occasionally for small programs > > and only with 10 % of its functionality. For my purposes, the text IDE > > seems to be adequate. But I stumble upon a basic functionality: the > > displayed cursor-position. > > > > When I start a new program by clicking the button "new", the cursor > > stands in the upper left corner, but its position is displayed as > > "1:976". > > > > This magic column number may be the difference between 2000 and 1024. > <snip> > > I would be happy, if someone could confirm my observations or give me a > > hint, what I am doing wrong. > > I remember an item on the bugtracker about cursor position. You might > want to search that. As far as I remember, a patch was attached which > you could try. > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal Thank you for your response! Now I see: It is not only my problem (since fpc 2.4.0). The bug is registrated for fpc version 2.6.2 concerning Linux as 023956: incorrect display of the cursor in the window edit code and 023957: incorrect procedure TIndicator.Draw for x86_64 As I allways install the binary form of fpc, I hope the problem will be fixed with the next major release. thank you again, Hans Ebeling _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email