mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 11:58:13 +00:00
b3093ecee6
On Windows, some Windows 10 builds support only ANSI output, but not input, so these need to be separated. I'm also improving the detection on Mac and Linux to avoid hardcoding the result. Instead, supportsAnsiEscapes will be true if isatty() and the TERM environment variable contains the string 'xterm'. related #28614 R=lrn@google.com Review-Url: https://codereview.chromium.org/2753233002 .
68 lines
1.1 KiB
C++
68 lines
1.1 KiB
C++
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
#if !defined(DART_IO_DISABLED)
|
|
|
|
#include "platform/globals.h"
|
|
#if defined(HOST_OS_FUCHSIA)
|
|
|
|
#include "bin/stdio.h"
|
|
|
|
namespace dart {
|
|
namespace bin {
|
|
|
|
bool Stdin::ReadByte(int* byte) {
|
|
UNIMPLEMENTED();
|
|
return false;
|
|
}
|
|
|
|
|
|
bool Stdin::GetEchoMode(bool* enabled) {
|
|
UNIMPLEMENTED();
|
|
return false;
|
|
}
|
|
|
|
|
|
bool Stdin::SetEchoMode(bool enabled) {
|
|
UNIMPLEMENTED();
|
|
return false;
|
|
}
|
|
|
|
|
|
bool Stdin::GetLineMode(bool* enabled) {
|
|
UNIMPLEMENTED();
|
|
return false;
|
|
}
|
|
|
|
|
|
bool Stdin::SetLineMode(bool enabled) {
|
|
UNIMPLEMENTED();
|
|
return false;
|
|
}
|
|
|
|
|
|
bool Stdin::AnsiSupported(bool* supported) {
|
|
UNIMPLEMENTED();
|
|
return false;
|
|
}
|
|
|
|
|
|
bool Stdout::GetTerminalSize(intptr_t fd, int size[2]) {
|
|
UNIMPLEMENTED();
|
|
return false;
|
|
}
|
|
|
|
|
|
bool Stdout::AnsiSupported(intptr_t fd, bool* supported) {
|
|
UNIMPLEMENTED();
|
|
return false;
|
|
}
|
|
|
|
} // namespace bin
|
|
} // namespace dart
|
|
|
|
#endif // defined(HOST_OS_FUCHSIA)
|
|
|
|
#endif // !defined(DART_IO_DISABLED)
|