Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
Compiled console application doesn't scroll down
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
How to run an external co...
by
marcov
[
Today
at 01:37:41 pm]
Published sets in FPC are...
by
cdbc
[
Today
at 01:13:16 pm]
Is it possible to create ...
by
gidesa
[
Today
at 12:32:25 pm]
'Rounding' to (say) 5 DP
by
J-G
[
Today
at 12:28:25 pm]
BAScript - Simple scripti...
by
gidesa
[
Today
at 12:10:21 pm]
[SOLVED] Form has no Task...
by
Hartmut
[
Today
at 11:52:24 am]
StrMath.pas a String Numb...
by
LV
[
Today
at 11:48:43 am]
lazarus project
by
Zvoni
[
Today
at 10:14:51 am]
Debian removes FPC/Lazaru...
by
MarkMLl
[
Today
at 09:13:31 am]
Anyone else getting a tro...
by
RaketeMike
[
Today
at 09:09:28 am]
Frustrating Error When us...
by
TYDQ
[
Today
at 08:24:52 am]
[SOLVED] Statically linki...
by
Khrys
[
Today
at 07:37:24 am]
Status of FPC 3.4.0 or FP...
by
PascalDragon
[February 17, 2026, 09:25:01 pm]
MVP made easier.
by
cdbc
[February 17, 2026, 09:16:07 pm]
A diary project with SQLi...
by
cdbc
[February 17, 2026, 09:03:25 pm]
[ANN] fpGUI Toolkit v2.0....
by
PascalDragon
[February 17, 2026, 08:49:17 pm]
DCPcrypt v2.0.6 — Cryptog...
by
Ten_Mile_Hike
[February 17, 2026, 07:40:22 pm]
[SOLVED] Lazarus recompil...
by
creaothceann
[February 17, 2026, 07:37:12 pm]
4.4 messed with the proje...
by
QEnnay
[February 17, 2026, 07:26:00 pm]
Duplicated icon in the Wi...
by
n7800
[February 17, 2026, 06:11:54 pm]
[AGGPas] Difference betwe...
by
cdbc
[February 17, 2026, 05:02:28 pm]
pas2js WebAssembly SQLite...
by
PierceNg
[February 17, 2026, 03:32:46 pm]
My AGGPas examples
by
Roland57
[February 17, 2026, 02:10:03 pm]
Datatype of Fields in sql...
by
Dzandaa
[February 17, 2026, 01:46:59 pm]
TurboBird IBX
by
valdir.marcos
[February 17, 2026, 10:38:16 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Compiled console application doesn't scroll down (Read 6016 times)
kulverstukas
Guest
Compiled console application doesn't scroll down
«
on:
April 19, 2010, 08:56:11 pm »
Hey,
I have this problem and I have no idea what is wrong. My compiled console application doesn't scroll down when a lot of stuff must be written out (writeln()
. Instead it just overwrites everything so it would fit on the screen. This wasn't happening with old 1.0.6 compiler. When I compile with the newest one, 2.4.0 - that thing happens.
Here is my code:
http://evilzone.org/paste/pastebin.php?show=224
Logged
Leledumbo
Hero Member
Posts: 8835
Programming + Glam Metal + Tae Kwon Do = Me
Re: Compiled console application doesn't scroll down
«
Reply #1 on:
April 20, 2010, 06:25:42 am »
Remove Crt from your uses clause (it registers a video driver that's incompatible with standard console behavior), use Video unit to manipulate cursor position.
Logged
Follow this if you want me to answer:
http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F
http://pascalgeek.blogspot.com
https://bitbucket.org/leledumbo
https://github.com/leledumbo
Code first, think later - Natural programmer B)
kulverstukas
Guest
Re: Compiled console application doesn't scroll down
«
Reply #2 on:
April 20, 2010, 07:34:03 pm »
But then nothing works... ClrScr, TextColor, Readkey, GotoXY and other stuff.
Logged
Leledumbo
Hero Member
Posts: 8835
Programming + Glam Metal + Tae Kwon Do = Me
Re: Compiled console application doesn't scroll down
«
Reply #3 on:
April 21, 2010, 06:26:38 am »
It can still be done though Keyboard and Video units, though the way will be very different. For example, ReadKey is roughly the same as GetKeyEventChar(TranslateKeyEvent(GetKeyEvent)). You may want to wrap this in a function to ease calling.
See the docs of relevant units below:
Keyboard:
http://www.freepascal.org/docs-html/rtl/keyboard/index.html
Video:
http://freepascal.org/docs-html/rtl/video/index.html
Logged
Follow this if you want me to answer:
http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F
http://pascalgeek.blogspot.com
https://bitbucket.org/leledumbo
https://github.com/leledumbo
Code first, think later - Natural programmer B)
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
Compiled console application doesn't scroll down
TinyPortal
© 2005-2018