Recent

Author Topic: [Win8]Console configuration problems  (Read 14868 times)

Japanczi

  • New Member
  • *
  • Posts: 11
[Win8]Console configuration problems
« on: November 29, 2014, 10:19:43 pm »
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

  • Hero Member
  • *****
  • Posts: 11858
Re: [Win8]Console configuration problems
« Reply #1 on: November 29, 2014, 10:34:52 pm »
Use the scrollbar of the console window to bring older text back.

Japanczi

  • New Member
  • *
  • Posts: 11
Re: [Win8]Console configuration problems
« Reply #2 on: November 29, 2014, 10:40:58 pm »
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

  • Hero Member
  • *****
  • Posts: 5275
    • Bart en Mariska's Webstek
Re: [Win8]Console configuration problems
« Reply #3 on: November 29, 2014, 10:50:42 pm »
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

  • New Member
  • *
  • Posts: 11
Re: [Win8]Console configuration problems
« Reply #4 on: November 29, 2014, 10:59:01 pm »
I've tried every setting in the "Properties" options. Nothing could help.

Bart

  • Hero Member
  • *****
  • Posts: 5275
    • Bart en Mariska's Webstek
Re: [Win8]Console configuration problems
« Reply #5 on: November 29, 2014, 11:12:56 pm »
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

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
Re: [Win8]Console configuration problems
« Reply #6 on: November 29, 2014, 11:14:55 pm »
@Japanczi what font is selected in the console properties?
Properties/Tab Font
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

Japanczi

  • New Member
  • *
  • Posts: 11
Re: [Win8]Console configuration problems
« Reply #7 on: November 29, 2014, 11:38:09 pm »
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

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

  • New Member
  • *
  • Posts: 11
Re: [Win8]Console configuration problems
« Reply #8 on: November 29, 2014, 11:39:39 pm »
@Japanczi what font is selected in the console properties?
Properties/Tab Font

Consolas. Why asking?

Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
Re: [Win8]Console configuration problems
« Reply #9 on: November 29, 2014, 11:41:49 pm »
i see...
i'm asking because i'm willing to help you that's why  8-)


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

  • Hero Member
  • *****
  • Posts: 5275
    • Bart en Mariska's Webstek
Re: [Win8]Console configuration problems
« Reply #10 on: November 29, 2014, 11:52:48 pm »
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.

You did not answer my second question.
Does it also occur with the sample program (not using crt)?

Bart

Japanczi

  • New Member
  • *
  • Posts: 11
Re: [Win8]Console configuration problems
« Reply #11 on: November 30, 2014, 12:00:45 am »
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.

You did not answer my second question.
Does it also occur with the sample program (not using crt)?

Bart

Yes it does.

Japanczi

  • New Member
  • *
  • Posts: 11
Re: [Win8]Console configuration problems
« Reply #12 on: November 30, 2014, 12:02:27 am »
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

  • Hero Member
  • *****
  • Posts: 5275
    • Bart en Mariska's Webstek
Re: [Win8]Console configuration problems
« Reply #13 on: November 30, 2014, 12:04:48 am »
Never heard of that one.
Is it new to win8?

Bart

Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
Re: [Win8]Console configuration problems
« Reply #14 on: November 30, 2014, 12:15:00 am »
@Bard no
is many years from now
i notice it at first on win xp season
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

 

TinyPortal © 2005-2018