Skip to content

Instantly share code, notes, and snippets.

@raphink
Created January 2, 2013 15:57
Show Gist options
  • Save raphink/4435532 to your computer and use it in GitHub Desktop.
Save raphink/4435532 to your computer and use it in GitHub Desktop.
module Tty =
let entry =
let dev = [ label "dev" . store Rx.fspath ]
in let rate = [ label "rate" . store Rx.integer ]
in Build.key_value_line Rx.word Sep.space (dev . Sep.space . rate)
test entry get "stty /dev/cuaU0 9600\n" =
{ "stty"
{ "dev" = "/dev/cuaU0" }
{ "rate" = "9600" } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment