mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-08 03:24:04 +08:00
Try with a bit shorter process completed messages
This commit is contained in:
@@ -123,12 +123,12 @@ public final class TerminalSession extends TerminalOutput {
|
|||||||
String exitDescription = "\r\n[Process completed";
|
String exitDescription = "\r\n[Process completed";
|
||||||
if (exitCode > 0) {
|
if (exitCode > 0) {
|
||||||
// Non-zero process exit.
|
// Non-zero process exit.
|
||||||
exitDescription += " with code " + exitCode;
|
exitDescription += " (code " + exitCode + ")";
|
||||||
} else if (exitCode < 0) {
|
} else if (exitCode < 0) {
|
||||||
// Negated signal.
|
// Negated signal.
|
||||||
exitDescription += " with signal " + (-exitCode);
|
exitDescription += " (signal " + (-exitCode) + ")";
|
||||||
}
|
}
|
||||||
exitDescription += " - press Enter to close]";
|
exitDescription += " - press Enter]";
|
||||||
|
|
||||||
byte[] bytesToWrite = exitDescription.getBytes(StandardCharsets.UTF_8);
|
byte[] bytesToWrite = exitDescription.getBytes(StandardCharsets.UTF_8);
|
||||||
mEmulator.append(bytesToWrite, bytesToWrite.length);
|
mEmulator.append(bytesToWrite, bytesToWrite.length);
|
||||||
|
Reference in New Issue
Block a user