2021-05-22 00:12:16 +08:00
|
|
|
//first half of © character
|
|
|
|
|
process.stdout.write(Buffer.from([0xC2]), (err) => {
|
|
|
|
|
//write in the callback so that the second byte is sent separately
|
2021-05-22 03:32:09 +08:00
|
|
|
setTimeout(() => {
|
|
|
|
|
process.stdout.write(Buffer.from([0xA9])) //second half of © character
|
|
|
|
|
}, 5000)
|
|
|
|
|
|
2021-05-22 00:12:16 +08:00
|
|
|
})
|