| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef LIBRARIES_NACL_IO_MOUNT_NODE_TTY_H_ | 5 #ifndef LIBRARIES_NACL_IO_MOUNT_NODE_TTY_H_ |
| 6 #define LIBRARIES_NACL_IO_MOUNT_NODE_TTY_H_ | 6 #define LIBRARIES_NACL_IO_MOUNT_NODE_TTY_H_ |
| 7 | 7 |
| 8 #include <poll.h> | 8 #include <poll.h> |
| 9 #include <pthread.h> | 9 #include <pthread.h> |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 const void* buf, | 51 const void* buf, |
| 52 size_t count, | 52 size_t count, |
| 53 int* out_bytes, | 53 int* out_bytes, |
| 54 bool locked); | 54 bool locked); |
| 55 Error ProcessInput(struct tioc_nacl_input_string* message); | 55 Error ProcessInput(struct tioc_nacl_input_string* message); |
| 56 Error Echo(const char* string, int count); | 56 Error Echo(const char* string, int count); |
| 57 void InitTermios(); | 57 void InitTermios(); |
| 58 | 58 |
| 59 std::deque<char> input_buffer_; | 59 std::deque<char> input_buffer_; |
| 60 bool is_readable_; | 60 bool is_readable_; |
| 61 bool did_resize_; |
| 61 pthread_cond_t is_readable_cond_; | 62 pthread_cond_t is_readable_cond_; |
| 62 std::string prefix_; | 63 std::string prefix_; |
| 63 struct termios termios_; | 64 struct termios termios_; |
| 65 /// Current height of terminal in rows. |
| 66 int rows_; |
| 67 /// Current width of terminal in columns. |
| 68 int cols_; |
| 64 }; | 69 }; |
| 65 | 70 |
| 66 } | 71 } |
| 67 | 72 |
| 68 #endif | 73 #endif |
| OLD | NEW |