Lazarus

Free Pascal => Beginners => Topic started by: DarkDiosito on April 24, 2018, 12:44:25 am

Title: Console 24 line limit.
Post by: DarkDiosito on April 24, 2018, 12:44:25 am
Hi!

I'm new to Lazarus and Pascal and I've been wanting to write this very basic console program that displays the entire alphabet with each letter in one line.

When I executed it, I noticed that I didn't fully display what was written, it only shows 24 lines.

How do I increase the limit of lines in the terminal console?

Thanks!
Title: Re: Console 24 line limit.
Post by: Akira1364 on April 24, 2018, 01:36:15 am
That's a Windows setting, nothing to do with FPC. Right click on the top header of the command prompt, then choose "properties", then choose "layout", and then under "screen buffer size" set the height value to something larger.
Title: Re: Console 24 line limit.
Post by: DarkDiosito on April 24, 2018, 02:13:56 am
I played around with it for a while, and it seems that the displayed lines are limited to the window size instead of the actual buffer.

With this I mean, that for example I have a 500 lines buffer and a window size that only allows to show 25 lines, right? Those 25 lines show the last 25 lines of the program and the other 475 buffer spaces are black lines.

I'll attach some pictues with the maximum window size that my screen allows, and I changed the letters to numbers so it's more visible.

I'm sorry if there's something I'm not getting. Other IDEs I used just printed everything and then you could scroll up and down normally.
Title: Re: Console 24 line limit.
Post by: RAW on April 25, 2018, 08:39:27 pm
The easiest thing would probably be: use a GUI app and design the output as you wish....
Or have fun with this nice console window... it's legal  :D

EDIT:
Maybe you like to try this:
1. Install LAZARUS 1.8.2
2. Load the lpi file (ShowOutput.zip)
3. Enjoy your own output window....
Title: Re: Console 24 line limit.
Post by: SW48 on September 08, 2023, 09:54:27 pm
How would I use this in another .pas program?
TinyPortal © 2005-2018