@devries-cameron20 / t3code Mirror · read-only / commits / a17459e8a9
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 24, 17:45 UTC

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

Justyn Leung committed Aug 7, 2026 at 06:20 UTC a17459e8a93a7be1f8261166034c245dd9794a0a
1 file changed +6
apps/mobile/modules/t3-terminal/ios/T3TerminalView.swift
+6
@@ -535,6 +535,12 @@ public final class T3TerminalView: ExpoView, UITextFieldDelegate {
535 return
536 }
537
538 + if buffer.isEmpty {
539 + feedData(Data("\u{1B}[3J\u{1B}[H\u{1B}[2J".utf8))
540 + lastAppliedBuffer = ""
541 + return
542 + }
543 +
544 if buffer.hasPrefix(lastAppliedBuffer) {
545 let suffix = String(buffer.dropFirst(lastAppliedBuffer.count))
546 feedData(Data(suffix.utf8))