9 lines
272 B
JavaScript
9 lines
272 B
JavaScript
//first half of © character
|
|
process.stdout.write(Buffer.from([0xC2]), () => {
|
|
//write in the callback so that the second byte is sent separately
|
|
setTimeout(() => {
|
|
process.stdout.write(Buffer.from([0xA9])) //second half of © character
|
|
}, 100)
|
|
|
|
})
|