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

Case distinction for 'tcflush' constants #7

Merged
merged 1 commit into from
Nov 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/TERMIOS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -419,13 +419,13 @@ const B4000000 = 4000000
# Values for the QUEUE_SELECTOR argument to `tcflush'.
#
"""Discard data received but not yet read."""
const TCIFLUSH = 1
const TCIFLUSH = Sys.islinux() ? 0 : 1

"""Discard data written but not yet sent."""
const TCOFLUSH = 2
const TCOFLUSH = Sys.islinux() ? 1 : 2

"""Discard all pending data."""
const TCIOFLUSH = 3
const TCIOFLUSH = Sys.islinux() ? 2 : 3

#
# Values for the ACTION argument to `tcflow'.
Expand Down