Barry, I'm not sure, I don't have telepathy help at hand, but
> > function main > tp_open( 1,, 9600, 8, "N", 1 ) tp_open( port, input-buffer size, output-buffer size, speed... so it lacks a comma and as such 9600 is not port speed and all the other parameters are wrong as well. But, I have to check with the help and the source which I don't have here. best regards. Maurilio. > do while !LASTKEY()=27 > tp_send( 1, CHR(LASTKEY())) > tp_delay(0.5) //uses ThreadSleep() > ? tp_recv( 1 ) > inkey(0) > enddo > tp_Close( 1 ) > return nil > > function ThreadSleep ( millisecs ) > secs = millisecs/1000 > now = seconds() > DO WHILE seconds()<now+secs > ENDDO > return nil > > I have compiled and linked the test program as follows:- > > [...@jackodesktop hbr]$ hbcmp -gc -n telepath.prg > Harbour 1.1.0dev (Rev. 9956) > Copyright (c) 1999-2008, http://www.harbour-project.org/ > Compiling 'telepath.prg'... > Lines 1137, Functions/Procedures 31 > Generating C source output to 'telepath.c'... Done. > > [...@jackodesktop hbr]$ hbcmp -gc testtp.prg > Harbour 1.1.0dev (Rev. 9956) > Copyright (c) 1999-2008, http://www.harbour-project.org/ > Compiling 'testtp.prg'... > Lines 19, Functions/Procedures 3 > Generating C source output to 'testtp.c'... Done. > > [...@jackodesktop hbr]$ hbcc testtp.c telepath.c tpcommon.c tplinux.c > [...@jackodesktop hbr]$ > > Then with loopback plug connected :- > > [...@jackodesktop hbr]$ a.out > > Send String = > FetchChars = // from debug line added to function > fetchchars > Handle 3 // debug line added to function > fetchchars > Recv string = // first loop should fetch nothing > // Hit key "a" > Send String = a > FetchChars = > Handle 3 > Recv string = //this should receive "a" > > > I admit that I have now hit a brick wall with this. > I have stepped through in debug as far as I can. > Any help would be appreciated. Has anyone used telepath functions > in Linux who could send me some working code to test in Mandriva? > Anyone got any debugging ideas? > Thanks in advance. > -- > View this message in context: > http://www.nabble.com/Using--contrib-hbtpathy-fuctions-in-Linux-tp21339751p21339751.html > Sent from the Harbour - Dev mailing list archive at Nabble.com. > > _______________________________________________ > Harbour mailing list > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour > _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour