| author | |
| committer | |
| log | a17459e8a93a7be1f8261166034c245dd9794a0a |
| tree | 0d16f21935125e7b572675067c242dfdc53e8f77 |
| parent | b2ee17d7c1b1bdff543ffff43929d01b92a902f4 |
| signature | Signed by PGP key B5690EEEBB952194 |
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 { |
| 535 | 535 | return |
| 536 | 536 | } |
| 537 | 537 | |
| 538 | if buffer.isEmpty { | |
| 539 | feedData(Data("\u{1B}[3J\u{1B}[H\u{1B}[2J".utf8)) | |
| 540 | lastAppliedBuffer = "" | |
| 541 | return | |
| 542 | } | |
| 543 | ||
| 538 | 544 | if buffer.hasPrefix(lastAppliedBuffer) { |
| 539 | 545 | let suffix = String(buffer.dropFirst(lastAppliedBuffer.count)) |
| 540 | 546 | feedData(Data(suffix.utf8)) |