Recent

Author Topic: Writing to the terminal upon program initialization.  (Read 2508 times)

c_knowles4834

  • New Member
  • *
  • Posts: 25
Writing to the terminal upon program initialization.
« on: September 09, 2021, 01:17:22 am »
Hello all,

I was wondering if anyone knew of a way to display the output of the following code to a terminal window upon the initialization of a Unix executable file:

Code: Pascal  [Select][+][-]
  1.      debugln('Start of Calc Trace');
  2.      decodedate(date, YYYY,MM,DD);
  3.      debugln(format('Date MMDDYYYY= "%d/%d/%d"',[mm,dd,YYYY]));
  4.      debugln('<Time HH:MM:SS XM= "',timetostr(time),'"/>');
  5.  

I have tried every avenue that I can think of to get this code to write to the terminal; but, for whatever reason it will not display in the terminal window that opens when I run the Unix executable file associated with my program.

Any help would be appreciated!

Below are my system parameters:

macOS: BigSur 11.5.2
Lazarus 2.0.12 x86_64-macosx
fpc-3.2.0.intel-macosx
fpc-src-3.2.0-2

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: Writing to the terminal upon program initialization.
« Reply #1 on: September 09, 2021, 12:53:15 pm »

 

TinyPortal © 2005-2018