Recent

Author Topic: Can Console In/Output be modified?  (Read 377 times)

Curt Carpenter

  • Hero Member
  • *****
  • Posts: 605
Can Console In/Output be modified?
« on: February 15, 2025, 04:46:33 pm »
Using Lazarus 3.2 on Linux to debug a simple pascal program using the Console In/Output window.  Is there is a way to permanently turn off the "Always on top" mode for the console window?  Also: is there is a way to make the "Enter" keys on my keyboard all perform the same way (the Enter key on the numeric keypad has a different effect than the Enter on the qwerty portion of my keyboard.)? 

MarkMLl

  • Hero Member
  • *****
  • Posts: 8334
Re: Can Console In/Output be modified?
« Reply #1 on: February 15, 2025, 05:37:11 pm »
Both those questions depend on the OS you're using.

In the case of unix many if not most window managers offer a "keep on top" or similar which can usually be applied to individual windows.

Enter key handling etc. will again depend on the OS and widget set, I don't know to what extent that's fixable or how amenable the LCL maintainers would be.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10924
  • Debugger - SynEdit - and more
    • wiki
Re: Can Console In/Output be modified?
« Reply #2 on: February 15, 2025, 05:42:40 pm »
I don't think the window itself has that flag/option => but maybe its added by anchordockig?

MarkMLl

  • Hero Member
  • *****
  • Posts: 8334
Re: Can Console In/Output be modified?
« Reply #3 on: February 15, 2025, 09:14:14 pm »
I don't think the window itself has that flag/option => but maybe its added by anchordockig?

No, it will be done (on unix) by the WM. See attached.

Updated: If Curt's talking about Windows, I think I remember that it had a way that an application program could add things to the system button. Could an IDE extension package add a "keep on top" facility?

Apologies for a fairly large screenshot, but KDE didn't want to action the PrintScreen key if the menus were already displayed.

MarkMLl
« Last Edit: February 15, 2025, 09:55:19 pm by MarkMLl »
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Curt Carpenter

  • Hero Member
  • *****
  • Posts: 605
Re: Can Console In/Output be modified?
« Reply #4 on: February 15, 2025, 11:29:15 pm »
OK thank you.  It took me a while to discover that the Enter key on the numeric part of my keyboard didn't work with the debugger's Console In/Output while the one on the qwerty part did.  Core problem though is that it's been a long time since I used the "small program" mode to do anything and don't have the right habits.   Great fun though! 

MarkMLl

  • Hero Member
  • *****
  • Posts: 8334
Re: Can Console In/Output be modified?
« Reply #5 on: February 16, 2025, 09:53:34 am »
If you're doing something interactive you'll be far better off using either "attach to program" or gdbserver for debugging.

The console window is very much for quick-and-dirty stuff, and its behaviour is to a large extent constrained by that of the backend debugger: hence the extra EOLs it inserts etc. plus a bit of a nightmare around UTF-8 output.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

d2010

  • Full Member
  • ***
  • Posts: 122
Re: Can Console In/Output be modified?
« Reply #6 on: February 16, 2025, 10:32:33 am »
If you're doing something interactive you'll be far better off using either "attach to program" or gdbserver for debugging.

The console window is very much for quick-and-dirty stuff, and its behaviour is to a large extent constrained by that of the backend debugger: hence the extra EOLs it inserts etc. plus a bit of a nightmare around UTF-8 output.

MarkMLl

My solution set Opacity-off-Crt overlay  MenuFrame is corect?
When I need debug& event , then I set  crt_opacity to 255.
is good solution?
« Last Edit: February 16, 2025, 10:34:47 am by d2010 »

 

TinyPortal © 2005-2018