Only do size fallback if input is a TTY (#801)

This commit is contained in:
Jake Wharton
2025-03-16 00:09:17 -04:00
committed by GitHub
parent 91fa7b568f
commit 2750f67b55

View File

@ -289,7 +289,7 @@ public suspend fun Tty.useAsTerminal(
print("\r\n")
}
if (!toggleInBandResize) {
if (!toggleInBandResize && isInputTty()) {
currentSize().let { (columns, rows) ->
size.value = Terminal.Size(columns, rows)
}