From cde57cb3071acae40d8f3a17f81582f166628988 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 8 Nov 2021 17:08:29 +0100 Subject: [PATCH] Case distinction for 'tcflush' constants --- src/TERMIOS.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/TERMIOS.jl b/src/TERMIOS.jl index ca31ee9..f4a7c65 100644 --- a/src/TERMIOS.jl +++ b/src/TERMIOS.jl @@ -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'.