[fpc-pascal] using Crt Functions inside a thread.

josepascual at almudi.com josepascual at almudi.com
Thu Feb 9 20:46:26 CET 2006


Hi,

I have a little program working with Crt units without problem. I have
change the print way form, I have pushing Crt Commands inen Fifo (GotoXY, ClrScr, ClrEol, Write,...) and I have created a Thread
class to pop this commands to execute it.
Problem seems to be cursor position in tty which is not working okey
perhaps for using threads? Is any funtion to syncronizing tty each time is
writing or changing cursor position?
version of compiler a compiling output,
====================================================
Free Pascal Compiler version 2.0.0 [2005/05/15] for i386 Copyright (c)
1993-2005 by Florian Klaempfl Target OS: Linux for i386 Compiling test.dpr
Linking test_386 25 Lines compiled, 0.4 sec====================================================

I have attached an example in order to test it,

tia!

best regards.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.dpr
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20060209/29ed8130/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ApilarCrt.pas
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20060209/29ed8130/attachment-0001.ksh>


More information about the fpc-pascal mailing list