1
0
Fork 0
toolkit/packages/exec/__tests__/scripts/stdoutputspecial.js

9 lines
276 B
JavaScript

//first half of © character
process.stdout.write(Buffer.from([0xC2]), (err) => {
//write in the callback so that the second byte is sent separately
setTimeout(() => {
process.stdout.write(Buffer.from([0xA9])) //second half of © character
}, 5000)
})