1 #ifndef SRC_TTY_WRAP_H_
2 #define SRC_TTY_WRAP_H_
5 #include "handle_wrap.h"
6 #include "stream_wrap.h"
10 class TTYWrap : public StreamWrap {
12 static void Initialize(v8::Local<v8::Object> target,
13 v8::Local<v8::Value> unused,
14 v8::Local<v8::Context> context);
18 size_t self_size() const override { return sizeof(*this); }
21 TTYWrap(Environment* env,
22 v8::Local<v8::Object> object,
26 static void GuessHandleType(const v8::FunctionCallbackInfo<v8::Value>& args);
27 static void IsTTY(const v8::FunctionCallbackInfo<v8::Value>& args);
28 static void GetWindowSize(const v8::FunctionCallbackInfo<v8::Value>& args);
29 static void SetRawMode(const v8::FunctionCallbackInfo<v8::Value>& args);
30 static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
37 #endif // SRC_TTY_WRAP_H_