Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2014-12

Linux, keypressed, readkey

7 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Sven Barth
to Rainer Stratmann

Am 19.12.2014 13:55 schrieb "Rainer Stratmann" <

Show quoted text 7 lines
: Is it possible to do keypressed and readkey directly with a systemcall in linux without unit crt?

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

Reply by email

Rainer Stratmann
to Sven Barth
you wrote 11 lines
Am 19.12.2014 13:55 schrieb "Rainer Stratmann" < > Is it possible to do > > keypressed and readkey > > directly with a systemcall in linux without unit crt? 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.

I downloaded the sources, but can not find the crt sources.

fpsrc/rtl/linux ?

Regards, Sven

Reply by email

Kiên Nguyễn Tiến Trung
to Tomas Hajny

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 :

Show quoted text 18 lines
On Fri, December 19, 2014 13:54, Rainer Stratmann wrote: > Is it possible to do > > keypressed and readkey > > directly with a systemcall in linux without unit crt? Unit keyboard provides another solution across all supported platforms (without certain disadvantages of unit Crt). Tomas _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply by email

leledumbo
to Rainer Stratmann: 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

View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Linux-keypressed-readkey-tp5720638p5720660.html Sent from the Free Pascal - General mailing list .

Reply by email

Rainer Stratmann
to leledumbo
you wrote 9 lines
> 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.p p

Thanks!

Show quoted text 9 lines
-- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Linux-keypressed-readkey- tp5720638p5720660.html Sent from the Free Pascal - General mailing list fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply by email