Skip to content

Commit

Permalink
Case distinction for 'tcflush' constants
Browse files Browse the repository at this point in the history
  • Loading branch information
rush42 committed Nov 8, 2021
1 parent 3c32ffd commit cde57cb
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit cde57cb

Please sign in to comment.