]> gitweb.factorcode.org Git - factor.git/commitdiff
serial library works with the null modem -- add some standard ports for future reference
authorDoug Coleman <doug.coleman@gmail.com>
Tue, 17 Mar 2009 20:03:01 +0000 (15:03 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Tue, 17 Mar 2009 20:03:01 +0000 (15:03 -0500)
extra/io/serial/unix/unix-tests.factor

index e9b8d78e4b7fd9ffd5540026bd5b13bf94cb4590..f4c0c6b45a4cbc91ce9862867c11dc20291c4b2b 100644 (file)
@@ -5,7 +5,10 @@ IN: io.serial.unix
 
 : serial-obj ( -- obj )
     serial new
-    "/dev/ttyS0" >>path
+    "/dev/ttyS0" >>path ! linux
+    ! "/dev/dty00" >>path ! netbsd
+    ! "/dev/ttyd0" >>path ! freebsd
+    ! "/dev/ttyU0" >>path ! openbsd
     19200 >>baud
     { IGNPAR ICRNL } flags >>iflag
     { } flags >>oflag