Show "-press Enter to close" at session exit

This makes it more clear how to close the session after finishing.
Fixes #15.
This commit is contained in:
Fredrik Fornwall
2015-11-20 00:38:58 +01:00
parent 65cfcffa6f
commit 0deacd8fc6

View File

@@ -119,7 +119,7 @@ public final class TerminalSession extends TerminalOutput {
// Negated signal.
exitDescription += " with signal " + (-exitCode);
}
exitDescription += "]";
exitDescription += " - press Enter to close]";
byte[] bytesToWrite = exitDescription.getBytes(StandardCharsets.UTF_8);
mEmulator.append(bytesToWrite, bytesToWrite.length);