Recent

Author Topic: Console is getting cleared after compilation in FPC 3+  (Read 2186 times)

Artlav

  • New Member
  • *
  • Posts: 36
    • Orbital Designs
Console is getting cleared after compilation in FPC 3+
« on: February 16, 2016, 04:53:29 pm »
Greetings.
It feels like i'm just missing a switch somewhere, but i can't find a way to stop the compiler from clearing the console after it's done compiling.

Before around FPC 3 it would compile, give out the compile done message, and leave everything as is.
With FPC 3 it compiles, if there are no errors it clears screen, then gives out the compile done line.

How can i stop it from clearing the screen?
It's quite annoying.

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1059
Re: Console is getting cleared after compilation in FPC 3+
« Reply #1 on: February 16, 2016, 04:59:19 pm »
On which platform are you, and how are you compiling? I've never heard of this kind of behaviour before (with FPC 3.0 or any other version).

Laksen

  • Hero Member
  • *****
  • Posts: 745
    • J-Software
Re: Console is getting cleared after compilation in FPC 3+
« Reply #2 on: February 16, 2016, 06:38:23 pm »
I'm seeing it in Ubuntu 15 as well, but not in ubuntu 14.

It's about 52 newlines on my project generated by the call to ld. It does the same if linked from the command line. Not an fpc bug, just binutils again.

Using binutils x86_64 2.25.1 on the buggy system

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1059
Re: Console is getting cleared after compilation in FPC 3+
« Reply #3 on: February 16, 2016, 06:42:25 pm »
Ah, yes. That bug has been fixed binutils already (http://bugs.freepascal.org/view.php?id=27988 ), so when Ubuntu updates to 2.26 it should be ok.

Artlav

  • New Member
  • *
  • Posts: 36
    • Orbital Designs
Re: Console is getting cleared after compilation in FPC 3+
« Reply #4 on: February 16, 2016, 08:22:15 pm »
Arch Linux, binutils 2.25.1
Just tried to compile with -sh, and it compiles without problems, but running the linker script produces the newlines.
Scrolling up, it does look like there is just a bunch of new lines rather than a clear screen.
So, binutils it is, apparently.

Thanks for clearing it up.
I thought it was a new FPC "feature" since i encountered it in the past on Windows while trying to compile for Android, which had version 3.*, while all the 2.* worked as usual. Didn't matter to me back then, but i noticed.

 

TinyPortal © 2005-2018