authorgravatar for justynleung2000@gmail.comJustyn Leung <justynleung2000@gmail.com> 2026-08-07 06:20:15-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-08-07 10:20:15+00:00
loga17459e8a93a7be1f8261166034c245dd9794a0a
tree0d16f21935125e7b572675067c242dfdc53e8f77
parentb2ee17d7c1b1bdff543ffff43929d01b92a902f4
signature Signed by PGP key B5690EEEBB952194

fix(mobile): avoid iOS terminal reset on clear (#5440)


1 files changed, 6 insertions(+), 0 deletions(-)

apps/mobile/modules/t3-terminal/ios/T3TerminalView.swift+6
......@@ -535,6 +535,12 @@ public final class T3TerminalView: ExpoView, UITextFieldDelegate {
535535 return
536536 }
537537
538 if buffer.isEmpty {
539 feedData(Data("\u{1B}[3J\u{1B}[H\u{1B}[2J".utf8))
540 lastAppliedBuffer = ""
541 return
542 }
543
538544 if buffer.hasPrefix(lastAppliedBuffer) {
539545 let suffix = String(buffer.dropFirst(lastAppliedBuffer.count))
540546 feedData(Data(suffix.utf8))