Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
stdio.h
Go to the documentation of this file.
1// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2// for details. All rights reserved. Use of this source code is governed by a
3// BSD-style license that can be found in the LICENSE file.
4
5#ifndef RUNTIME_BIN_STDIO_H_
6#define RUNTIME_BIN_STDIO_H_
7
8#include "bin/builtin.h"
9#include "bin/utils.h"
10
11#include "platform/globals.h"
12
13namespace dart {
14namespace bin {
15
16class Stdin {
17 public:
18 static bool ReadByte(intptr_t fd, int* byte);
19
20 static bool GetEchoMode(intptr_t fd, bool* enabled);
21 static bool SetEchoMode(intptr_t fd, bool enabled);
22
23 static bool GetEchoNewlineMode(intptr_t fd, bool* enabled);
24 static bool SetEchoNewlineMode(intptr_t fd, bool enabled);
25
26 static bool GetLineMode(intptr_t fd, bool* enabled);
27 static bool SetLineMode(intptr_t fd, bool enabled);
28
29 static bool AnsiSupported(intptr_t fd, bool* supported);
30
31 private:
32 DISALLOW_ALLOCATION();
34};
35
36class Stdout {
37 public:
38 static bool GetTerminalSize(intptr_t fd, int size[2]);
39 static bool AnsiSupported(intptr_t fd, bool* supported);
40
41 private:
42 DISALLOW_ALLOCATION();
44};
45
46} // namespace bin
47} // namespace dart
48
49#endif // RUNTIME_BIN_STDIO_H_
static bool GetEchoNewlineMode(intptr_t fd, bool *enabled)
static bool GetEchoMode(intptr_t fd, bool *enabled)
static bool SetEchoMode(intptr_t fd, bool enabled)
static bool ReadByte(intptr_t fd, int *byte)
static bool AnsiSupported(intptr_t fd, bool *supported)
static bool SetLineMode(intptr_t fd, bool enabled)
static bool GetLineMode(intptr_t fd, bool *enabled)
static bool SetEchoNewlineMode(intptr_t fd, bool enabled)
static bool GetTerminalSize(intptr_t fd, int size[2])
static bool AnsiSupported(intptr_t fd, bool *supported)
#define DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName)
Definition globals.h:593