We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbdcf3e commit c8daecbCopy full SHA for c8daecb
Sources/TauTUI/Terminal/Terminal.swift
@@ -456,7 +456,7 @@ public final class ProcessTerminal: Terminal {
456
457
private func currentTerminalSize() -> (columns: Int, rows: Int) {
458
var windowSize = winsize()
459
- if ioctl(self.outputFD.rawValue, TIOCGWINSZ, &windowSize) == 0 {
+ if ioctl(self.outputFD.rawValue, numericCast(TIOCGWINSZ), &windowSize) == 0 {
460
let cols = Int(windowSize.ws_col)
461
let rows = Int(windowSize.ws_row)
462
return (max(cols, 1), max(rows, 1))
0 commit comments