From: Angel P. <ang...@ya...> - 2009-09-27 14:36:38
|
Thanks but read-char-no-hang hangs too. --- On Sun, 9/27/09, Jonathan Johansen <fra...@gm...> wrote: > From: Jonathan Johansen <fra...@gm...> > Subject: Re: [clisp-list] read-char-no-hang-p hangs on com port > To: "Angel Popov" <ang...@ya...>, cli...@li... > Date: Sunday, September 27, 2009, 3:13 AM > Sorry to come in part way, but maybe > instead of calling > read-char-will-hang-p and read-char, you might be able to > get away > with a specific function called #'read-char-no-hang *, > which might be > a better choice, as it is noted that it will specifically > not hang. > > * http://www.ai.mit.edu/projects/iiip/doc/CommonLISP/HyperSpec/Body/fun_read-char-no-hang.html > > Jonathan Johansen > > On Sun, Sep 27, 2009 at 12:02 AM, Angel Popov <ang...@ya...> > wrote: > > > > Thanks, > > I have tried > > [1]> (defvar com (open "COM3" :direction :io > :buffered nil)) > > COM > > [2]> (read-char-will-hang com) > > but hanged again > > > > --- On Sat, 9/26/09, Pascal J. Bourguignon <pj...@in...> > wrote: > > > > > From: Pascal J. Bourguignon <pj...@in...> > > > Subject: Re: [clisp-list] read-char-no-hang-p > hangs on com port > > > To: "Angel Popov" <ang...@ya...> > > > Cc: cli...@li... > > > Date: Saturday, September 26, 2009, 2:52 PM > > > > > > On Sep 26, 2009, at 11:01 AM, Angel Popov wrote: > > > > > > > Hi, > > > > I am trying to read from serial port on > windows using > > > > http://downloads.sourceforge.net/project/clisp/clisp/2.48/clisp-2.48-win32-mingw-big.exe. > > > > The problem is that read-char-no-hang-p > hangs when > > > there is no data on serial interface. > > > > > > > > sample session is: > > > > CL-USER> (defvar com (open "COM3" > :direction :io)) > > > > > > Try with: > > > :buffered nil > > > > > > > > > --__Pascal Bourguignon__ > > > http://www.informatimago.com > > > > <snip> > |