Skip to content

Commit

Permalink
Update TIOCGWINSZ constant for ffm on arm mac (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajalt authored Oct 27, 2024
1 parent 4643f10 commit aab4a28
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ internal class TerminalInterfaceFfmMacos : TerminalInterfaceJvmPosix() {
override val termiosConstants: TermiosConstants get() = MacosTermiosConstants

private companion object {
const val TIOCGWINSZ = 0x00005413
val TIOCGWINSZ = when (System.getProperty("os.arch")) {
"x86", "amd64" -> 0x00005413
else -> 0x40087468
}
const val TCSADRAIN: Int = 0x1
}

Expand Down

0 comments on commit aab4a28

Please sign in to comment.