Recent

Author Topic: Always show terminal output  (Read 6758 times)

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Always show terminal output
« on: January 23, 2016, 04:41:52 pm »
When I'm writing console applications in Linux, In need to show the results in IDE in terminal output window, but this Window disappears after running the application, every time I should click on alt+ctrl+o to display that output.
I'm using Lazarus 1.4.4 on docked mode using AnchorDocking.
Is it possible to put terminal output window inside docked Lazarus IDE to be visible permanently.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8766
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Always show terminal output
« Reply #1 on: January 23, 2016, 04:53:06 pm »
Is it possible to put terminal output window inside docked Lazarus IDE to be visible permanently.
Hell yes! See bottom left corner in the attachment ;)

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: Always show terminal output
« Reply #2 on: January 23, 2016, 05:02:52 pm »
OK, how can I do that?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8766
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Always show terminal output
« Reply #3 on: January 23, 2016, 05:25:15 pm »
OK, how can I do that?
You said you're using anchor docking, so just drag the docking handle of terminal output window to wherever you want it to be docked.

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: Always show terminal output
« Reply #4 on: January 23, 2016, 06:43:54 pm »
where is the docking handle?
This is my IDE photo with terminal attached

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: Always show terminal output
« Reply #5 on: January 24, 2016, 12:12:43 am »
Finally I found the docking handler, and it works fine.
Thanks

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: Always show terminal output
« Reply #6 on: January 24, 2016, 07:11:22 am »
I didn't find it in Windows version !!
Look at attachment
« Last Edit: January 24, 2016, 07:44:59 am by motaz »

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1230
Re: Always show terminal output
« Reply #7 on: January 24, 2016, 07:56:43 am »
hello,
in july 2015 Martin_Fr has said :
Quote
On Windows "Terminal Output" does not exist, because console apps always
have there own window (though if someone knew how to implement it ...)

To see writeln output of a console application on Windows uncheck (-WG) option
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

Leledumbo

  • Hero Member
  • *****
  • Posts: 8766
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Always show terminal output
« Reply #8 on: January 24, 2016, 08:23:27 am »
hello,
in july 2015 Martin_Fr has said :
Quote
On Windows "Terminal Output" does not exist, because console apps always
have there own window (though if someone knew how to implement it ...)

To see writeln output of a console application on Windows uncheck (-WG) option
Yeah, blame Windows for such a "feature". There actually is a possible partial implementation, by assuming programs don't modify its console handling / standard streams, thus reading from their stdout/stderr stream will work the same as in *nix platforms.

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: Always show terminal output
« Reply #9 on: January 24, 2016, 09:45:35 am »
Thank you all

I have updated my Arabic Object Pascal book by these important information and I have removed readln; command from all console application samples,  because it confuses beginners. All other development tools does not require readln to let the user read the output.
Later I should update English book version
« Last Edit: January 24, 2016, 09:47:17 am by motaz »

 

TinyPortal © 2005-2018