From c8efaddbe68e8b112f80739e511df08704c4e09e Mon Sep 17 00:00:00 2001 From: nuintun Date: Thu, 26 Nov 2015 16:56:49 +0800 Subject: [PATCH] update files --- bin/emulator.js | 4 ++++ static/js/components/app-main/index.js | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/bin/emulator.js b/bin/emulator.js index 8d7c4cb..c18952b 100644 --- a/bin/emulator.js +++ b/bin/emulator.js @@ -95,6 +95,10 @@ module.exports = { env[item.name] = item.value }); + env['COLORTERM'] = 'true'; + env['DEBUG_FD'] = '1'; + env['DEBUG_COLORS'] = 'true'; + emulator = new Emulator({ env: env, cwd: project.path, diff --git a/static/js/components/app-main/index.js b/static/js/components/app-main/index.js index e614e17..4954946 100644 --- a/static/js/components/app-main/index.js +++ b/static/js/components/app-main/index.js @@ -74,6 +74,7 @@ function createXTerm(name, xtermNode){ refresh(runtime.xterm); } else { var xterm = new Terminal({ + scrollback: 80, convertEol: true, fgColor: 'inherit', bgColor: 'transparent' @@ -207,8 +208,12 @@ module.exports = Vue.component('app-main', { break; } - runtime.xterm.write(data + ''); - scroll(runtime.xterm); + console.log(data); + + setTimeout(function (){ + runtime.xterm.write(data + ''); + scroll(runtime.xterm); + }, 100); } else { event.sender.send('emulator', project, 'stop'); }