mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Tiny fixes
This commit is contained in:
+1
-4
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user