jacobsa / go-serial

A Go library for dealing with serial ports.
Apache License 2.0
626 stars 120 forks source link

How to set ioctl flags? #23

Open hryamzik opened 7 years ago

hryamzik commented 7 years ago

I'm trying to implement this code in go and looks like these two line are crucial:

ioctl_flags &= TIOCM_RTS;
ioctl_flags &= TIOCM_DTR;

Is there a way to set them with this library?