main: attempt to fix windows gui console (issue #171)
This commit is contained in:
parent
74a8ea9266
commit
1019139b44
1 changed files with 9 additions and 0 deletions
|
|
@ -65,6 +65,15 @@ if (settings.cli) {
|
|||
launcher = require('./electron-window')({address:address, shortcuts:false, width:680, height:626, node:true, color:'#283143'})
|
||||
})
|
||||
|
||||
if (process.log) {
|
||||
process.log = (function(write) {
|
||||
return function(string, encoding, fd) {
|
||||
write.apply(process, arguments)
|
||||
launcher.webContents.send('stdout', string)
|
||||
}
|
||||
})(process.log)
|
||||
}
|
||||
|
||||
process.stdout.write = (function(write) {
|
||||
return function(string, encoding, fd) {
|
||||
write.apply(process.stdout, arguments)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue