Afficher les réponses par date
site:https://webmail.iro.umontreal.ca/pipermail/gambit-list/ whatever you're looking for.
On Jul 30, 2007, at 7:39 PM, Terry Parks wrote:
Also is there a way to search the list archives?
Terry Parks
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
The settings for serial ports (aka "ttys" in the Unix world) can be changed with the procedure tty-mode-set!. Here is an example on MacOS X using a bluetooth modem:
(let ((modem (open-file "/dev/tty.Bluetooth-Modem")))
(tty-mode-set! modem #f #f #t #t 38400)
(display "at\r" modem) (force-output modem)
(pp (read-line modem)) ;; prints: "at\r\r" (pp (read-line modem))) ;; prints: "OK\r"
Only some settings can be changed with tty-mode-set!. The parameters are:
(tty-mode-set! <input-allow-special> <input-echo> <input-raw> <output-raw> <speed>)
<input-allow-special>: boolean, #f = disable ctr-c handling, etc <input-echo>: boolean, #f = characters received are not echoed <input-raw>: boolean, #t = pass each character read unchanged ("RAW" mode) <output-raw>: boolean, #t = pass each character to the output unchanged ("RAW" mode) <speed>: integer = baud rate
Marc
On 30-Jul-07, at 11:26 PM, Marc Feeley wrote:
The settings for serial ports (aka "ttys" in the Unix world) can be changed with the procedure tty-mode-set!. Here is an example on MacOS X using a bluetooth modem:
I should have added that you can also use the FFI to call up C code that configures the serial port (with a call to tcsetattr on Unix, or SetCommState on Windows).
Marc