[Win8]Console configuration problems lazarus / 67-Windows ---------------------------------------------------------------------- Japanczi · 2014-11-29 21:19 Hello Lazarus people. Today I've decided to write some FreePascal applications and met a really hard problem to deal with. When you display a lot of text in the console, the older words, that have been written first, are cut by the upper border of the window. Could somebody tell me what's going on here? In attachment please look at the upper border of the window and the scrollbar. ---------------------------------------------------------------------- wp · 2014-11-29 21:34 Use the scrollbar of the console window to bring older text back. ---------------------------------------------------------------------- Japanczi · 2014-11-29 21:40 Can't. That's why I'm posting it here. The scrollbar is at the very top point of the window. You can't scroll farther. ---------------------------------------------------------------------- Bart · 2014-11-29 21:50 You can probably set it in the properties of the cmd shortcut. See attachment (in Dutch), probably the selected field (it says 300 in my case). Bart ---------------------------------------------------------------------- Japanczi · 2014-11-29 21:59 I've tried every setting in the "Properties" options. Nothing could help. ---------------------------------------------------------------------- Bart · 2014-11-29 22:12 Do you use crt unit in your app? Same problem with this simple program? Code: [Select]var   i: integer; begin   for i := 1 to 2 * 25 do writeln('Line ',i); end. Bart ---------------------------------------------------------------------- Never · 2014-11-29 22:14 @Japanczi what font is selected in the console properties? Properties/Tab Font ---------------------------------------------------------------------- Japanczi · 2014-11-29 22:38 Quote from: Bart on November 29, 2014, 11:12:56 pmDo you use crt unit in your app? Same problem with this simple program? Code: [Select]var   i: integer; begin   for i := 1 to 2 * 25 do writeln('Line ',i); end. Bart Of course I use Crt. It's obvious, I guess. The problem with that console is that the window isn't overwriting things at the bottom border. It just pushes all text up and thus cuts everything at top border. ---------------------------------------------------------------------- Japanczi · 2014-11-29 22:39 Quote from: Never on November 29, 2014, 11:14:55 pm@Japanczi what font is selected in the console properties? Properties/Tab Font Consolas. Why asking? ---------------------------------------------------------------------- Never · 2014-11-29 22:41 i see... i'm asking because i'm willing to help you that's why  This is not an issue of Lazarus or Free Pascal is an issue of cmd on hi resolution monitors Add these settings in the cmd properties Tab/Options            Buffer Size:999          {might work with default}            Number Of Buffers :5 {might work with default} Tab/Font             Font : Consolas        {might work with default}             Font Size:14             {might work with default} Tab LayOut/           *** Screen Buffer Size:2000*** {This one is important you need a big number here} Cross your fingers and Click ok if the system ask you to set them as default answer yes ---------------------------------------------------------------------- Bart · 2014-11-29 22:52 Quote from: Japanczi on November 29, 2014, 11:38:09 pmOf course I use Crt. It's obvious, I guess. The problem with that console is that the window isn't overwriting things at the bottom border. It just pushes all text up and thus cuts everything at top border. You did not answer my second question. Does it also occur with the sample program (not using crt)? Bart ---------------------------------------------------------------------- Japanczi · 2014-11-29 23:00 Quote from: Bart on November 29, 2014, 11:52:48 pmQuote from: Japanczi on November 29, 2014, 11:38:09 pmOf course I use Crt. It's obvious, I guess. The problem with that console is that the window isn't overwriting things at the bottom border. It just pushes all text up and thus cuts everything at top border. You did not answer my second question. Does it also occur with the sample program (not using crt)? Bart Yes it does. ---------------------------------------------------------------------- Japanczi · 2014-11-29 23:02 I guess I've passed the problem. Thanks Never for the tip. I've looked at Default settings and I've just unchecked an option called "autocomplete" (Idk if I translated it correctly). ---------------------------------------------------------------------- Bart · 2014-11-29 23:04 Never heard of that one. Is it new to win8? Bart ---------------------------------------------------------------------- Never · 2014-11-29 23:15 @Bard no is many years from now i notice it at first on win xp season ---------------------------------------------------------------------- Bart · 2014-11-29 23:23 Quote from: Never on November 30, 2014, 12:15:00 amis many years from now i notice it at first on win xp season Where/how to find? Bart ---------------------------------------------------------------------- Never · 2014-11-29 23:24 i'm sorry i can't understant what do you mean ---------------------------------------------------------------------- wp · 2014-11-29 23:25 I don't see that option either. Could you post a screen shot? ---------------------------------------------------------------------- Cyrax · 2014-11-30 03:26 I can't see that option, either. Attached animated gif for Command prompt properties dialog. OS is Windows Server 2008 R2. ---------------------------------------------------------------------- engkin · 2014-11-30 03:48 Defaults, not Properties. When you right click on the title choose Defaults. It is right above Properties. ---------------------------------------------------------------------- Cyrax · 2014-11-30 04:01 Ohh, now I see! Attached new screenshot. ---------------------------------------------------------------------- Bart · 2014-11-30 10:12 Ah, you have to start cmd first, then right-click on the title bar. Never ever done that. Thanks, I learned something new today. Bart ---------------------------------------------------------------------- Japanczi · 2014-11-30 10:48 Well I don't know If you're not misled. Yesterday It worked somehow, but now I've still got the same problem ---------------------------------------------------------------------- Never · 2014-11-30 13:57 Quoteif the system ask you to set them as default answer yes ---------------------------------------------------------------------- engkin · 2014-11-30 14:06 Quote from: Japanczi on November 30, 2014, 11:48:53 amWell I don't know If you're not misled. Quote from: Japanczi on November 30, 2014, 11:48:53 amYesterday It worked somehow, but now I've still got the same problem  The only setting that helps is, as Never mentioned: Properties - Layout tab - Screen Buffer Size - Height This solution is increasing the number of lines from 300 to 9999 maximum, which means you'll face the same problem if you exceed 9999 lines! ---------------------------------------------------------------------- Japanczi · 2014-11-30 14:58 Doesn't work ---------------------------------------------------------------------- engkin · 2014-11-30 16:33 I don't see your screenshots. 1 for the setting and 1 to show your scroll bar. ---------------------------------------------------------------------- wp · 2014-11-30 16:56 Please post a full project (lpi+lpr) which shows the problem. Since you say that Bart's simple program has the same issue there must be something completely wrong. Do you see the issue only with fpc/Lazarus programs or, for example, also when you call "dir c:\Windows\System32\*.*"? ---------------------------------------------------------------------- Japanczi · 2014-11-30 17:24 Attachments IN ATTACHMENT #1 I CAN'T SCROLL ANY FARTHER TO THE TOP. ---------------------------------------------------------------------- Japanczi · 2014-11-30 17:24 Attachments #2 ---------------------------------------------------------------------- engkin · 2014-11-30 21:22 Your image shows that you did not change the height from 300 to 9999.  Uklad - Rozmiar buforu ekranu - Wysokość Don't forget to save it as the default value, otherwise tomorrow it will not work, again I just noticed, the problem is related to using crt unit.