Console output scroll-up/down issues

New to FreeBASIC? Post your questions here.
Post Reply
Pete7
Posts: 4
Joined: Jan 03, 2025 1:30

Console output scroll-up/down issues

Post by Pete7 »

Apologies for another post on this issue. I've checked out a number of posts on this but with no success unfortunately. I've pasted below a screenshot of the console window together with more showing various settings pages. Hopefully they help pinpoint my issue.

My problem: I loose everything apart from the last 30 lines output to the console/output window. I can't scroll up.

My setup: Windows 11, using FBIde (version 0.4.6r4) + FreeBASIC (version 1.10.1-winlibs-gcc-9.3.0)

Minimal code:

Code: Select all

dim i as integer
for i=1 to 1000
    print i
next i
sleep
Console window output:
https://imgur.com/Z5xkWSi
Various screenshots from console Settings:-
https://imgur.com/Z5xkWSi
https://imgur.com/9u57vJ9
https://imgur.com/HENukpJ
https://imgur.com/f1aDWvH
https://imgur.com/9AzSeUq
https://imgur.com/1KP3FRD
https://imgur.com/6E1fmkC
https://imgur.com/HoZK7gD
Lothar Schirm
Posts: 482
Joined: Sep 28, 2013 15:08
Location: Germany

Re: Console output scroll-up/down issues

Post by Lothar Schirm »

Seems that you use the Windows terminal. Use the good old cmd.exe instead. In my instalallation of Windows 11 it is C:\Windows\System32\cmd.exe. If you use the terminal, you can instead set the standard terminal application to "Windows Console Host" instead of "Windows Terminal".
fxm
Moderator
Posts: 12497
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Console output scroll-up/down issues

Post by fxm »

In the 'Run command' field of 'FBIde setting' / 'FreeBASIC', you can try:
cmd /c ""<$file>" <$param> & pause"
Lothar Schirm
Posts: 482
Joined: Sep 28, 2013 15:08
Location: Germany

Re: Console output scroll-up/down issues

Post by Lothar Schirm »

fxm wrote: Jan 03, 2025 16:25 In the 'Run command' field of 'FBIde setting' / 'FreeBASIC', you can try:
cmd /c ""<$file>" <$param> & pause"
This is very useful in order to prevent the immediate closing of the console window when the program has run. By this way you can see runtime errors on the console window if you use compiler switch -exx
Pete7
Posts: 4
Joined: Jan 03, 2025 1:30

Re: Console output scroll-up/down issues

Post by Pete7 »

Cheers folk, appreciate the help. This has sorted things out.
Post Reply