Send \r instead of \n from native input text view (fixes #1020)

This commit is contained in:
Fredrik Fornwall
2019-02-09 23:14:44 +01:00
parent 2a36b915cb
commit 330301899a

View File

@@ -249,7 +249,7 @@ public final class TermuxActivity extends Activity implements ServiceConnection
if (session != null) {
if (session.isRunning()) {
String textToSend = editText.getText().toString();
if (textToSend.length() == 0) textToSend = "\n";
if (textToSend.length() == 0) textToSend = "\r";
session.write(textToSend);
} else {
removeFinishedSession(session);