GetMode retrieves the current mode settings. Known bug on OS X: GetMode only works after SetMode has been called before. If not, it returns an error.
()
| 46 | // Known bug on OS X: GetMode only works after SetMode has been called |
| 47 | // before. If not, it returns an error. |
| 48 | GetMode() (Mode, error) |
| 49 | |
| 50 | // SetReadParams sets the minimum number of bytes to read and a read |
| 51 | // timeout in seconds. These parameters roughly correspond to the |