Also fix some Internet Explorer incompatibilities
This commit is contained in:
paris
2015-01-19 19:06:17 +02:00
parent c5af270885
commit af39a3fcc0
2 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ term.prompt();
term.on('key', function (key, ev) {
var printable = (!ev.altKey && !ev.altGraphKey && !ev.ctrlKey && !ev.metaKey);
if (ev.keyIdentifier == 'Enter') {
if (ev.keyCode == 13) {
term.prompt();
} else if (ev.keyCode == 8) {
/*
+12 -9
View File
@@ -32,28 +32,31 @@
*/
/*
* Default style for xterm.js
*/
* Default style for xterm.js
*/
.xterm {
.terminal {
background-color: #000;
color: #fff;
outline: none;
font-family: courier-new, courier, monospace;
position: relative;
}
.xterm .terminal-cursor {
.terminal:focus {
outline: none;
}
.terminal .terminal-cursor {
background-color: #fff;
color: #000;
}
.xterm .xterm-helpers {
.terminal .xterm-helpers {
position: absolute;
top: 0;
}
.xterm .xterm-helper-textarea {
.terminal .xterm-helper-textarea {
opacity: 0;
width: 0;
height: 0;
@@ -61,8 +64,8 @@
}
/*
* Determine default colors for xterm.js
*/
* Determine default colors for xterm.js
*/
.terminal .xterm-bold {
font-weight: bold;
}