* * *

Author Topic: Console 24 line limit.  (Read 964 times)

DarkDiosito

  • Newbie
  • Posts: 3
Console 24 line limit.
« 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!

Akira1364

  • Sr. Member
  • ****
  • Posts: 362
Re: Console 24 line limit.
« Reply #1 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.

DarkDiosito

  • Newbie
  • Posts: 3
Re: Console 24 line limit.
« Reply #2 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.
« Last Edit: April 24, 2018, 02:19:54 am by DarkDiosito »

RAW

  • Hero Member
  • *****
  • Posts: 673
Re: Console 24 line limit.
« Reply #3 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....
« Last Edit: April 30, 2018, 03:49:33 am by RAW »
Windows 7 Pro (x64 Sp1) And Windows XP Pro (x86 Sp3) - LAZARUS 1.8.4 FPC 3.0.4 // 1.7 FPC 3.1.1

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus