]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Tiny fixes
authorparis <pariskasidiaris@gmail.com>
Mon, 24 Mar 2014 19:51:08 +0000 (19:51 +0000)
committerparis <pariskasidiaris@gmail.com>
Mon, 24 Mar 2014 19:51:08 +0000 (19:51 +0000)
demo/main.js

index bc3f3d520bb7c4ca72abeb9c9511de0d1e402d4d..51d86ce313eab70f7ea1a88407804e9a10d1726b 100644 (file)
@@ -4,9 +4,7 @@ var terminalContainer = document.getElementById('terminal-container'),
     });
 
 term.prompt = function () {
-  console.log('before promtp');
-  term.writeln('>  ');
-  console.log('after promtp');
+  term.write('\r\n> ');
 }
 
 term.open(terminalContainer);
@@ -20,7 +18,6 @@ term.on('key', function (key, ev) {
 
   if (ev.keyIdentifier == 'Enter') {
     ev.preventDefault();
-    term.writeln('');
     term.prompt();
   } else if (ev.keyCode == 8) {
     term.write('\b \b');