| Index: native_client_sdk/src/libraries/nacl_io/mount_node_tty.h
|
| diff --git a/native_client_sdk/src/libraries/nacl_io/mount_node_tty.h b/native_client_sdk/src/libraries/nacl_io/mount_node_tty.h
|
| index 87c8191506d3fd0b0b7bb10479defd83afac9c00..8bf5b173047b273e9430f679cdcc0e84621e9419 100644
|
| --- a/native_client_sdk/src/libraries/nacl_io/mount_node_tty.h
|
| +++ b/native_client_sdk/src/libraries/nacl_io/mount_node_tty.h
|
| @@ -47,20 +47,26 @@ class MountNodeTty : public MountNodeCharDevice {
|
| }
|
|
|
| private:
|
| - virtual Error Write(size_t offs,
|
| - const void* buf,
|
| - size_t count,
|
| - int* out_bytes,
|
| - bool locked);
|
| Error ProcessInput(struct tioc_nacl_input_string* message);
|
| Error Echo(const char* string, int count);
|
| void InitTermios();
|
|
|
| std::deque<char> input_buffer_;
|
| bool is_readable_;
|
| + bool did_resize_;
|
| pthread_cond_t is_readable_cond_;
|
| - std::string prefix_;
|
| struct termios termios_;
|
| +
|
| + /// Current height of terminal in rows. Set via ioctl(2).
|
| + int rows_;
|
| + /// Current width of terminal in columns. Set via ioctl(2).
|
| + int cols_;
|
| +
|
| + // Output handler for TTY. This is set via ioctl(2).
|
| + struct tioc_nacl_output output_handler_;
|
| + // Lock to protect output_handler_. This lock gets aquired whenever
|
| + // output_handler_ is used or set.
|
| + sdk_util::SimpleLock output_lock_;
|
| };
|
|
|
| }
|
|
|