[fpc-pascal]Keyboard unit questions

Alan Mead cubrewer at yahoo.com
Sat Sep 11 01:00:34 CEST 2004


--- John Coppens <john at jcoppens.com> wrote:

> On Fri, 10 Sep 2004 08:33:21 -0700 (PDT)
> Alan Mead <cubrewer at yahoo.com> wrote:
> 
> > I just used the keyboard unit for the first time and it's quite
> > impressive but I have some questions.
> > 
> > Initially, I couldn't link on my old RH 7.2 machine because FPC
> 1.9.4
> > couldn't find the GPM libraries.  This is probably a stupid
> question
> > but is there a way that FPC can find libraries better so that I
> don't
> > have to ln -s /usr/libgpm.so.1 to /usr/libgpm.so?  This has
> happened
> > with other FPC units...
> 
> Hi Alan.
> 
> Surely someone with more experience will correct me. But for
> starters:
> 
> libgpm.so.1 shouldn't be in /usr - it should be either in usr/lib
> or
> usr/local/lib. In that case, your machine will automatically do the
> link,
> when it executes ldconfig.

John, thanks for your reply... Sorry, I should have been clearer. 
And I typed wrong.  The library was in /usr/lib but I guess FPC is
looking for 'libgpm.so' rather than 'libgpm.so.1' .. it's the '.1'
that fools FPC and it's happened before.  I don't know if it's a
RedHat thing .. because /usr/lib/libgpm.so.1 is, itself, a sim link
to something like /usr/lib/libgpm.so.1.18.1.. I gather that's the way
that one reconciles having the version number in the shared library
while trying to let linkers find the libraries... I just wonder why
FPC doesn't understand... Maybe this is considered such a trivial
matter to people that can write compilers :) Or maybe this is an
incompatibility between Linux distro's and RH just loses?

[snip]
> > And finally, I pasted my little example program below.  When I
> run it
> > in Konsole and it has some funny behavior.  Like Shift-F2 is
> reported
> > as F4 and Control-U is reported as 'SHIFT' ^A and ^E don't seem
[snip]
> 
> Can't help you there. 

I've had other programs mis-behave... The command history bits of my
favorite text adventure game works fine in console mode but screws
things up when I'm in Konsole.  I spent a little while goggling
around about keyboards and character sets and X ... but X is probably
the area of Linux that I know the least and I didn't understand any
of the stuff I found.

-Alan




More information about the fpc-pascal mailing list