| Index: runtime/bin/stdio_android.cc
|
| diff --git a/runtime/bin/stdio_android.cc b/runtime/bin/stdio_android.cc
|
| index e6b62501dab8d92405160c2f03bd07fa852599b3..d4a48cb82ed83f6dc2e6aeac96014a1e542b1fb1 100644
|
| --- a/runtime/bin/stdio_android.cc
|
| +++ b/runtime/bin/stdio_android.cc
|
| @@ -28,7 +28,6 @@ bool Stdin::ReadByte(int* byte) {
|
| return true;
|
| }
|
|
|
| -
|
| bool Stdin::GetEchoMode(bool* enabled) {
|
| struct termios term;
|
| int status = NO_RETRY_EXPECTED(tcgetattr(STDIN_FILENO, &term));
|
| @@ -39,7 +38,6 @@ bool Stdin::GetEchoMode(bool* enabled) {
|
| return true;
|
| }
|
|
|
| -
|
| bool Stdin::SetEchoMode(bool enabled) {
|
| struct termios term;
|
| int status = NO_RETRY_EXPECTED(tcgetattr(STDIN_FILENO, &term));
|
| @@ -55,7 +53,6 @@ bool Stdin::SetEchoMode(bool enabled) {
|
| return (status == 0);
|
| }
|
|
|
| -
|
| bool Stdin::GetLineMode(bool* enabled) {
|
| struct termios term;
|
| int status = NO_RETRY_EXPECTED(tcgetattr(STDIN_FILENO, &term));
|
| @@ -66,7 +63,6 @@ bool Stdin::GetLineMode(bool* enabled) {
|
| return true;
|
| }
|
|
|
| -
|
| bool Stdin::SetLineMode(bool enabled) {
|
| struct termios term;
|
| int status = NO_RETRY_EXPECTED(tcgetattr(STDIN_FILENO, &term));
|
| @@ -82,7 +78,6 @@ bool Stdin::SetLineMode(bool enabled) {
|
| return (status == 0);
|
| }
|
|
|
| -
|
| static bool TermHasXTerm() {
|
| const char* term = getenv("TERM");
|
| if (term == NULL) {
|
| @@ -91,13 +86,11 @@ static bool TermHasXTerm() {
|
| return strstr(term, "xterm") != NULL;
|
| }
|
|
|
| -
|
| bool Stdin::AnsiSupported(bool* supported) {
|
| *supported = isatty(STDIN_FILENO) && TermHasXTerm();
|
| return true;
|
| }
|
|
|
| -
|
| bool Stdout::GetTerminalSize(intptr_t fd, int size[2]) {
|
| struct winsize w;
|
| int status = NO_RETRY_EXPECTED(ioctl(fd, TIOCGWINSZ, &w));
|
| @@ -109,7 +102,6 @@ bool Stdout::GetTerminalSize(intptr_t fd, int size[2]) {
|
| return false;
|
| }
|
|
|
| -
|
| bool Stdout::AnsiSupported(intptr_t fd, bool* supported) {
|
| *supported = isatty(fd) && TermHasXTerm();
|
| return true;
|
|
|