Recent

Author Topic: Writing to the terminal upon program initialization.  (Read 1520 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: 1698
  • 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 »
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 x86_64 Xcode 13.1
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 aarch64 Xcode 13.1
Lazarus 2.3, FPC 3.2.2 FreeBSD 13.0 amd64 VM
Lazarus 2.3, FPC 3.2.2 FreeBSD 12.2 amd64 VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 VM
Lazarus 2.0.10 FPC 3.2.0 Win10 VM

 

TinyPortal © 2005-2018