Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add termios2 support #761

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add termios2 support #761

wants to merge 1 commit into from

Conversation

philj56
Copy link

@philj56 philj56 commented Jul 31, 2024

This adds support for termios2 on Linux, covered by an autoconf check.

There's a small workaround to allow functions from <termios.h> to still be used (i.e. tcflush()), but it could be removed and tcflush() replaced with an ioctl() call if preferred.

An additional check is made in debug mode to see if the desired baud rate has correctly been set; I don't think there's another way to know this, but I'm not 100% sure.

This shouldn't change anything for other platforms - I've tested this on a Mac, but not BSD as I don't have one available.

Copy link

cla-bot bot commented Jul 31, 2024

We require contributors to sign our Contributor License Agreement. In order for us to review and merge your code, please fill https://forms.gle/5635zjphDo5JEJQSA to get added. Your document will be manually checked by the maintainer. Be patient...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant