Encode game stderr stream in utf-8. Updated deps.

semver@5.5.1
esline@5.4.0
This commit is contained in:
Daniel Scalzi
2018-08-19 00:42:52 -04:00
parent 50317c3fc2
commit 845721a830
3 changed files with 21 additions and 139 deletions

View File

@@ -58,12 +58,13 @@ class ProcessBuilder {
}
child.stdout.setEncoding('utf8')
child.stderr.setEncoding('utf8')
child.stdout.on('data', (data) => {
console.log('%c[Minecraft]', 'color: #36b030; font-weight: bold', data)
})
child.stderr.on('data', (data) => {
console.log('%c[Minecraft]', 'color: #36b030; font-weight: bold', data)
console.log('%c[Minecraft]', 'color: #b03030; font-weight: bold', data)
})
child.on('close', (code, signal) => {
console.log('%c[ProcessBuilder]', 'color: #003996; font-weight: bold', 'Exited with code', code)