Instead of subtracting a hardcoded row count from window.innerHeight, measure the terminal frame's pixel height via onLayout and pass it into the WebView's measureFitDimensions. This gives pixel-accurate row calculations regardless of accessory bar height or safe-area insets. Co-authored-by: Orca <help@stably.ai>