* * *

Author Topic: Strange problem with FPC 3.0.2  (Read 886 times)

even

  • Newbie
  • Posts: 4
Strange problem with FPC 3.0.2
« on: April 03, 2017, 03:43:47 am »
I installed the 3.0.2 version of the free pascal compiler on my desktop(Windows 10-x64), there was a very strange question: when testing the console program, I entered a number in the console and press Enter, the cursor jumped back to the beginning of the line and didn't wrap to the next line, Ctrl+C break function didn't work too. please help ...

Thaddy

  • Hero Member
  • *****
  • Posts: 3971
Re: Strange problem with FPC 3.0.2
« Reply #1 on: April 03, 2017, 06:51:54 am »
I just tested the 3.0.2 fp.exe from the official distribution on windows 10.1 64 and it works fine. That version is a 32 bit executable one of course.
To stop the ide you do not use ctrl-c but alt-x by the way. ctrl-c is intentionally intercepted.
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

even

  • Newbie
  • Posts: 4
Re: Strange problem with FPC 3.0.2
« Reply #2 on: April 03, 2017, 07:30:04 am »
Thanks, I also tested version 3.0.0 and had the same results on my desktop, It seems "Enter" didn't wrap to new line in console program and Ctrl-C resulted "^C". But it does work fine on my laptop which is also window 10 x64.  :'(

even

  • Newbie
  • Posts: 4
Re: Strange problem with FPC 3.0.2
« Reply #3 on: April 03, 2017, 08:58:51 am »
I found that someone on the Internet had the same problem, but there was no solution.

Thaddy

  • Hero Member
  • *****
  • Posts: 3971
Re: Strange problem with FPC 3.0.2
« Reply #4 on: April 03, 2017, 10:22:59 am »
I also built a 64 bit version. Same thing: everything works as expected on windows 10.1 64 bit.
Try re-downloading and re-installing FPC and use only an official installer from here http://www.freepascal.org/download.var

If you found something on the internet and it is NOT on this forum, plz provide a link: there's lots of bogus info around and you will find many experts - if not all - only here.
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

even

  • Newbie
  • Posts: 4
Re: Strange problem with FPC 3.0.2
« Reply #5 on: April 04, 2017, 08:46:28 am »
I tried all the installation again according to your suggestions, unfortunately didn't work it out. Free pascal works fine except the Enter-wrap problem while debuging console program. Is it possible windows configuration caused this?
The following is the same problem searched from web, sorry for the language
http://www.imooc.com/wap/wenda/id/335248

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus