22 #ifndef SRC_TTY_WRAP_H_ 23 #define SRC_TTY_WRAP_H_ 25 #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 33 class TTYWrap :
public StreamWrap {
35 static void Initialize(v8::Local<v8::Object> target,
36 v8::Local<v8::Value> unused,
37 v8::Local<v8::Context> context);
41 size_t self_size()
const override {
return sizeof(*this); }
44 TTYWrap(Environment* env,
45 v8::Local<v8::Object>
object,
50 static void GuessHandleType(
const v8::FunctionCallbackInfo<v8::Value>& args);
51 static void IsTTY(
const v8::FunctionCallbackInfo<v8::Value>& args);
52 static void GetWindowSize(
const v8::FunctionCallbackInfo<v8::Value>& args);
53 static void SetRawMode(
const v8::FunctionCallbackInfo<v8::Value>& args);
54 static void New(
const v8::FunctionCallbackInfo<v8::Value>& args);
61 #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 63 #endif // SRC_TTY_WRAP_H_
void Initialize(Local< Object > target, Local< Value > unused, Local< Context > context, void *priv)
MaybeLocal< Object > New(Isolate *isolate, Local< String > string, enum encoding enc)