Re: [fpc-pascal] The keyboard unit

2019-05-11 Thread Kevin Lyda
And looking a bit further, I see this has been kind of addressed in r39579: https://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=39579 The fix is imperfect - a process could have a ') ' in it, but it would be unlikely. postfix and postgres appear to put a closing parens in their a

Re: [fpc-pascal] The keyboard unit

2019-05-11 Thread Kevin Lyda
Ralf, thanks! That was the idea, a small easy to test program. [NOTE: this email was a log of me debugging. If you want to skip to the issue: it's because the keyboard unit dies when running under tmux because /proc/PID/stat is harder to parse than the keyboard unit code assumes.] My setup is sim

Re: [fpc-pascal] The keyboard unit

2019-05-10 Thread Ralf Quint
On 5/10/2019 4:42 PM, Kevin Lyda wrote: If I remove the uses clause it runs fine. Why is the keyboard unit, which isn't even being used, causing this error? Kevin Well, when I got home a short while ago, I tried that small test program on one of my Linux workstations and it runs just fine...

Re: [fpc-pascal] The keyboard unit

2019-05-10 Thread Alexander Grotewohl
if it's not being used, remove it :)but really though, do any of the fleshed out examples on the website work? like the one from here?:https://www.freepascal.org/docs-html/rtl/keyboard/getkeyevent.html--Alexander Grotewohlhttp://dcclost.com___ fpc-pascal

Re: [fpc-pascal] The keyboard unit

2019-05-10 Thread Ralf Quint
On 5/10/2019 4:42 PM, Kevin Lyda wrote: When I compile and run this small test program ( https://gist.github.com/lyda/2d33a6d91067e9dffb4ed37147b52583 ) the following happens: % fpc test.pas Free Pascal Compiler version 3.0.4+dfsg-22~bpo9+2 [2019/02/22] for x86_64 Copyright (c) 1993-2017 by Flor