Recent

Author Topic: Console and FORM GUI at the same time! ?  (Read 1077 times)

pascalbythree

  • Sr. Member
  • ****
  • Posts: 266
Console and FORM GUI at the same time! ?
« on: August 17, 2023, 03:35:39 pm »
Does anybody know, if it is possible in lazarus to keep your command line window open and writeln to it.

At the same time i need to create a form by code, and see visualizations draw on a TImage on the form

At the same time

I am compiling in the command line in Lazarus 2.0.10 FPC 3.2.0 on a Raspberry ZERO

Anybody got URL or example code ?

Attached a photo of my project so far ! Great Thanks!







TRon

  • Hero Member
  • *****
  • Posts: 3647
Re: Console and FORM GUI at the same time! ?
« Reply #1 on: August 17, 2023, 03:40:43 pm »
Does anybody know, if it is possible in lazarus to keep your command line window open and writeln to it.
Yeah, just start your application from your terminal window. Try it for example with lazarus itself and it will output some debug messages.

btw:
Quote
I am compiling in the command line in Lazarus 2.0.10 FPC 3.2.0 on a Raspberry ZERO
That is really stretching it. If you need to rebuild lazarus itself you will run out of memory (requires > 1024 MB almost 2048 MB these days) and yes you can swap but that will be slow as f*ck.
« Last Edit: August 17, 2023, 03:46:25 pm by TRon »
This tagline is powered by AI (AI advertisement: Free Pascal the only programming language that matters)

pascalbythree

  • Sr. Member
  • ****
  • Posts: 266
Re: Console and FORM GUI at the same time! ?
« Reply #2 on: August 17, 2023, 07:04:45 pm »
First question did already start to work !

but now:

Anybody knows a faster TImage replacement ? in ASM or so ?

Dzandaa

  • Sr. Member
  • ****
  • Posts: 392
  • From C# to Lazarus
Re: Console and FORM GUI at the same time! ?
« Reply #3 on: August 17, 2023, 07:14:17 pm »
Hi,

Have you tried BGRABitmap?

B->
Regards,
Dzandaa

pascalbythree

  • Sr. Member
  • ****
  • Posts: 266
Re: Console and FORM GUI at the same time! ?
« Reply #4 on: August 17, 2023, 07:47:20 pm »
To heavy

Anybody got something very light?

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2269
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Console and FORM GUI at the same time! ?
« Reply #5 on: August 17, 2023, 07:59:51 pm »
To heavy

Anybody got something very light?
Use Controls/Forms Canvas and draw however you like.
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

funlw65

  • Full Member
  • ***
  • Posts: 149
    • Visual Pin Configurator for Nucleo 64pin boards
Re: Console and FORM GUI at the same time! ?
« Reply #6 on: August 22, 2023, 12:05:10 am »
To heavy

Anybody got something very light?

raylib+reygui?

Another option would be the framebuffer from console (e.g., the way mplayer works using fbdev2 ), but I don't know what is the freepascal support for that...
FreePascal 3.2.2, C 10.2.1, D 1.24 under Linux(init,musl,glibc), DragonflyBSD, NetBSD
gui: gtk2, qt5, raylib4.x+raygui3.x, nanovg 
tui: freevision, tvision2, termbox2+widgets, finalcut
db: typhoon-1.11...

 

TinyPortal © 2005-2018