| Index: runtime/bin/stdio_linux.cc
|
| diff --git a/runtime/bin/stdio_linux.cc b/runtime/bin/stdio_linux.cc
|
| index d3aab28ae319fcab00c11bbd184a95107e465966..5c37ccf5e6ba24e222892becd881343c5dd01f5a 100644
|
| --- a/runtime/bin/stdio_linux.cc
|
| +++ b/runtime/bin/stdio_linux.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;
|
|
|