Re: [fpc-pascal]gpm library compiled by default ?

2003-10-24 Thread Marco van de Voort
> On Thu, Oct 23, 2003 at 09:16:19AM +0200, Marco van de Voort wrote:
> > > On Wed, Oct 22, 2003 at 10:53:51PM +0200, Michalis Kamburelis wrote:
> > > > Maybe you're using the Keyboard unit ? This unit uses Mouse in it's
> > > > implementation, and by default unit Mouse uses Gpm unit (that links to
> > > > libgpm). If you don't want to depend on libgpm you can recompile Mouse
> > > > with symbol NOGPM defined (or even with NOMOUSE defined since you don't
> > > > use mouse at all).
> > > 
> > > I think I do use the KeyBoard unit. So I could compile it with fpc
> > > -dNOMOUSE ?
> > 
> > Yes. Under FreeBSD this is default even.
> 
> Compiling with this option makes no difference. It will still compile
> and require the gpm library.

You recompiled the _RTL_ with -dNOMOUSE ?

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]gpm library compiled by default ?

2003-10-24 Thread James Mills
On Fri, Oct 24, 2003 at 07:59:56AM +0200, Michalis Kamburelis wrote:
> From your answer I understand that you are recompiling Keyboard unit 
> with -dNOMOUSE, which is pointless. I wrote (maybe it was not clear 
> enough, sorry) that you should recompile _Mouse_ unit (not Keyboard unit).
> 
> If this is not the case and you're doing as I said (recompiling Mouse 
> unit), you should make sure that you're really linking your program with 
> the newly compiled Mouse unit. E.g. you can check this by adding a small 
> Writeln('something...') to initialization section of Mouse unit or by 
> compiling with -vu.
> 
> If you're 100% sure that you're compiling your program with Mouse unit 
> that does not require Gpm unit than it means that some other unit uses 
> Gpm unit (I assume here that there is no other unit that links to libgpm 
> library directly, without using Gpm unit). There is not such unit in FPC 
> 1.0.10 RTL, but that doesn't mean anything... So in this case you should 
> use Peter Vreman's advice and recompile program with -vu to see what 
> other unit uses Gpm unit.

Ok I was a tad bit confused. You originally said to recompile the RTL,
which I don't really want to do anyway, and I don't have the sources to
recompile. I'll just stick with the main stream version :)

People that use my console programs are just gonna have to have the gpm
library installed now aren't they :)

cheers
James

-- 
-Zero Defect Software Engineers Group - ZDSEG
-
-Web:  http://daisy.ods.org/
-Wiki: http://daisy.ods.org/~prologic/wiki/
-ICQ:  9663
-
-You need only two tools. WD-40 and duct tape.
-If it doesn't move and it should, use WD-40.
-If it moves and shouldn't, use the tape.

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal]Sending files over a Nullmodem cable

2003-10-24 Thread Karim
Hello 

I play with the thought to write a socket program. This program should
transfer large data files from my main computer to my notebook. For the
connection, I want to use a nullmodem cable over the serial port. I will
use the client/server model. 

The first problem is, how to access the serialport in FreeBSD with FPC ? 
Are there any examples or units that I can study.

Greetings 

Sonic Traveler
-- 
  Karim
  [EMAIL PROTECTED]

-- 
http://www.fastmail.fm - Send your email first class

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]Sending files over a Nullmodem cable

2003-10-24 Thread Marco van de Voort
> I play with the thought to write a socket program. This program should
> transfer large data files from my main computer to my notebook. For the
> connection, I want to use a nullmodem cable over the serial port. I will
> use the client/server model. 
> 
> The first problem is, how to access the serialport in FreeBSD with FPC ? 
> Are there any examples or units that I can study.

No. Otoh, it is nothing more than configuring, and than reading/writing a 
device.

See e.g. 

man sio (and specially note the "files" section) to see how serial ports are
named.

However that is not socket based by default, you'd probably need to run
SLIP on it.

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal