Is it possible to do
keypressed and readkey
directly with a systemcall in linux without unit crt?

Mailing lists / fpc-pascal / 2014-12
7 messages · 5 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Is it possible to do
keypressed and readkey
directly with a systemcall in linux without unit crt?
Am 19.12.2014 13:55 schrieb "Rainer Stratmann" <
Unit CRT is basically only reading from StdIn to determine pressed keys. Just look at the implementation of KeyPressed and ReadKey in CRT to see how it's done.
Regards,
Sven
I downloaded the sources, but can not find the crt sources.
fpsrc/rtl/linux ?
Regards, Sven
Is it possible to do keypressed and readkey directly with a systemcall in linux without…
Unit keyboard provides another solution across all supported platforms (without certain disadvantages of unit Crt).
Tomas
Units keyboard, video, mouse are strongly better than unit crt. I recommend you to use them.
2014-12-19 20:36 GMT+07:00 Tomas Hajny :
I downloaded the sources, but can not find the crt sources. fpsrc/rtl/linux ?
I downloaded the sources, but can not find the crt sources. fpsrc/rtl/linux ?
latest stable:
http://svn.freepascal.org/svn/fpc/tags/release_2_6_4/rtl/unix/crt.pp trunk:
http://svn.freepascal.org/svn/fpc/trunk/packages/rtl-console/src/unix/crt.pp
Thanks!