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
Lazarus Bugfix Release 4....
by
jamie
[
Today
at 12:03:26 am]
Death of the Power User
by
Joanna
[June 11, 2026, 11:59:28 pm]
Interesting video
by
Joanna
[June 11, 2026, 11:44:25 pm]
how to add a ForEach call...
by
mas steindorff
[June 11, 2026, 11:42:24 pm]
How to define a type of ...
by
PascalDragon
[June 11, 2026, 09:24:45 pm]
Implementing an Elo ratin...
by
mas steindorff
[June 11, 2026, 09:18:14 pm]
Gitlab site history date.
by
Martin_fr
[June 11, 2026, 08:46:17 pm]
Arkanoid
by
lazarusprogrammer
[June 11, 2026, 08:14:21 pm]
TDWEdit
by
Ed78z
[June 11, 2026, 05:29:08 pm]
[New Component] ExtTabCtr...
by
d7_2_laz
[June 11, 2026, 05:01:49 pm]
IndySecOpenSSL is now ava...
by
LeP
[June 11, 2026, 04:56:31 pm]
Conscious Artificial Inte...
by
schuler
[June 11, 2026, 04:39:11 pm]
Pdf Viewer in Pascal
by
Tomxe
[June 11, 2026, 03:52:37 pm]
Eye Candy TESCheme
by
Dzandaa
[June 11, 2026, 11:51:52 am]
P.I.S.S. a PlugIn-framewo...
by
cdbc
[June 11, 2026, 11:35:42 am]
I found an actual use for...
by
marcov
[June 11, 2026, 11:35:23 am]
Who can explain this ?
by
J-G
[June 11, 2026, 11:30:42 am]
XLibre, finally and fortu...
by
Fred vS
[June 11, 2026, 06:20:26 am]
WEBP, no DLLs
by
Tomxe
[June 11, 2026, 04:04:37 am]
Discipline your AI coding...
by
440bx
[June 11, 2026, 02:44:06 am]
Version 4.8 was recently ...
by
Ten_Mile_Hike
[June 11, 2026, 01:43:17 am]
FPC Unleashed (inline var...
by
Fibonacci
[June 11, 2026, 12:03:13 am]
Trayslate 1.3.1 - Free tr...
by
AlexanderT
[June 10, 2026, 08:12:24 pm]
TShellListView
by
Ed78z
[June 10, 2026, 07:59:41 pm]
[SOLVED] Curious why this...
by
1HuntnMan
[June 10, 2026, 07:53:21 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Compiled console application doesn't scroll down (Read 6076 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: 8836
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: 8836
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