blob: 6212d655d355fc559f1f20a82e7b9f2742dbdade (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
'use strict';
require('../common');
const TTY = process.binding('tty_wrap').TTY;
const WriteWrap = process.binding('stream_wrap').WriteWrap;
const handle = new TTY(1);
const req = new WriteWrap();
handle.writeBuffer(req, Buffer.from('hello world 1\n'));
handle.writeBuffer(req, Buffer.from('hello world 2\n'));
|