Recent

Author Topic: obtain Console Handler for Console application  (Read 1447 times)

weq

  • New member
  • *
  • Posts: 6
obtain Console Handler for Console application
« on: April 14, 2015, 03:08:57 pm »
Hi,
I am using freepascal 2.6.2 and I am developing console application, without GUI or anything. I use only Windows and SysUtils. I found how to change SetCurrentConsoleFontEx because I want to control font - but I need a Handle. I googled a bit but found old solution with changing the window title, and finding it by name ;) which seems a bit odd.
Is there a simpler way?
Thanks,
Weq

engkin

  • Hero Member
  • *****
  • Posts: 2513
Re: obtain Console Handler for Console application
« Reply #1 on: April 14, 2015, 03:43:00 pm »
StdOutputHandle?

 

TinyPortal © 2005-2018