Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2018-02

Lazarus Console text

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Wolf

Hi

What must I do to change font on the Lazarus console - not the Kubuntu console - to a monospace font, and how do I change font color there?

Thanks

Wolf

Reply by email

R0b0t1
to Wolf
Wolf wrote 5 lines
Hi What must I do to change font on the Lazarus console - not the Kubuntu console - to a monospace font, and how do I change font color there?

Sorry for the noise, but I am also very interested in an answer to this. I would like to be able to customize Lazarus more, and/or not use it when possible (admittedly lazbuild does a fairly good job).

Cheers,
R0b0t1

Reply by email

Wolf
to Martin Frb
Martin Frb wrote 7 lines
On 10/02/18 08:10, Wolf via Lazarus wrote: > What must I do to change font on the Lazarus console - not the > Kubuntu console - to a monospace font, and how do I change font color > there? You refer to the Console / "Terminal Output" from the menu View > Debug Windows?

correct

Show quoted text 5 lines
There are currently no settings for this. Source code (if you want to create a patch) is in debugger/pseudoterminaldlg.pp

pseudoterminaldlg.pp defines a class TPseudoConsoleDlg, which contains a field Memo1: TMemo
Memo1 already contains all the facilities I am looking for, I just need to find the place where to set them. Unless I'm mistaken, this means all I need to know is the variable name under which class TPseudoConsoleDlg is created??
Does anyone know this name / the file in which it is created? Thanks
Wolf

Reply by email

Martin Frb
to Wolf
Wolf wrote 14 lines
On 11/02/2018 00:37, Martin Frb via Lazarus wrote: > > Source code (if you want to create a patch) is in > debugger/pseudoterminaldlg.pp pseudoterminaldlg.pp defines a class TPseudoConsoleDlg, which contains a field Memo1: TMemo Memo1 already contains all the facilities I am looking for, I just need to find the place where to set them. Unless I'm mistaken, this means all I need to know is the variable name under which class TPseudoConsoleDlg is created?? Does anyone know this name / the file in which it is created?

just override Form.Create ?

Reply by email

Wolf
to Martin Frb
Martin Frb wrote 19 lines
On 10/02/18 22:36, Wolf via Lazarus wrote: > > > On 11/02/2018 00:37, Martin Frb via Lazarus wrote: >> >> Source code (if you want to create a patch) is in >> debugger/pseudoterminaldlg.pp > pseudoterminaldlg.pp defines a class TPseudoConsoleDlg, which > contains a field Memo1: TMemo > Memo1 already contains all the facilities I am looking for, I just > need to find the place where to set them. Unless I'm mistaken, this > means all I need to know is the variable name under which class > TPseudoConsoleDlg is created?? > Does anyone know this name / the file in which it is created? > just override Form.Create ?

I had nothing that drastic in mind.
If xxx creates class TPseudoConsoleDlg, then I should be able to call xxx from anywhere in my program
xxx.Memo1.Font to change the font or xxx.Memo1.Font.Color to change color. But the idea hinges on me knowing xxx, or its address.

Wolf

Reply by email

Martin Frb
to Wolf
Wolf wrote 23 lines
On 11/02/2018 22:06, Martin Frb via Lazarus wrote: > On 10/02/18 22:36, Wolf via Lazarus wrote: >> >> >> On 11/02/2018 00:37, Martin Frb via Lazarus wrote: >>> >>> Source code (if you want to create a patch) is in >>> debugger/pseudoterminaldlg.pp >> pseudoterminaldlg.pp defines a class TPseudoConsoleDlg, which >> contains a field Memo1: TMemo >> Memo1 already contains all the facilities I am looking for, I just >> need to find the place where to set them. Unless I'm mistaken, this >> means all I need to know is the variable name under which class >> TPseudoConsoleDlg is created?? >> Does anyone know this name / the file in which it is created? >> > > just override Form.Create ? > > I had nothing that drastic in mind.

It is the less drastic option....

If ever it will be officially implemented, it will with very high likelihood be there.

If xxx creates class TPseudoConsoleDlg, then I should be able to call xxx from anywhere in my program xxx.Memo1.Font to change the font or xxx.Memo1.Font.Color to change color. But the idea hinges on me knowing xxx, or its address.

As you wish....

ide/debugmanager.pas
line 1455 (at least in svn trunk)
procedure TDebugManager.ViewDebugDialog

this line
     CurDialog := TDebuggerDlg(DEBUGDIALOGCLASS[ADialogType].NewInstance);

Reply by email