mirror of
				https://github.com/JakeWharton/mosaic.git
				synced 2025-11-04 06:32:26 +08:00 
			
		
		
		
	Only do size fallback if input is a TTY (#801)
This commit is contained in:
		@ -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)
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user