[Factor-talk] Serial Comm: Two Dead Ends

2017-03-05 Thread Alexander Ilin
Hello! I have tried using io.serial in Windows today. Normally, serial IO is pretty straightforward in Windows: you open a file named "COM1", possibly set the baud rate, and off you go reading and writing. Not so much in Factor. I have imported the io.serial vocab and perused its empty

Re: [Factor-talk] Serial Comm: Two Dead Ends

2017-03-05 Thread John Benediktsson
This is the current definition of : : ( path encoding -- duplex ) [ open-r/w dup ] dip ; But ``open-r/w`` returns a win32-file, not an input-stream or output-stream. Perhaps this would work: : ( path encoding -- duplex ) [ open-r/w [ ] [ output-port> ] bi ] dip ;