Usability of System.Posix.Terminal
haskell2 at davidb.org
Sun Mar 18 01:50:36 EDT 2007
I was wondering if there are any applications that make use of
System.Posix.Terminal? I'm trying to write some code to communicate
over a serial port, and am trying to figure out how these functions
are intended to be used.
There are a bunch of 'with...' and 'without...' functions, but I'm not
sure how to easily combine them to modify some terminal attributes.
The best I've come up with is:
flip withoutMode IgnoreBreak .
flip withoutMode InterruptOnBreak .
flip withMode LocalMode .
flip withInputSpeed B9600 $ originalMode
and so on. Am I missing something here?
More information about the Libraries