Skip to content

Commit

Permalink
Merge pull request #175 from Tyriar/124_add_textarea_back
Browse files Browse the repository at this point in the history
Add textarea back and support IMEs
  • Loading branch information
parisk authored Jul 22, 2016
2 parents 55fb5db + 4595a18 commit 10fbf0d
Show file tree
Hide file tree
Showing 4 changed files with 576 additions and 151 deletions.
36 changes: 33 additions & 3 deletions src/xterm.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,40 @@
position: relative;
}

.terminal:focus {
.terminal.focus {
outline: none;
}

.terminal .xterm-helpers {
position: absolute;
top: 0;
}

.terminal .xterm-helper-textarea {
position: absolute;
/*
* HACK: to fix IE's blinking cursor
* Move textarea out of the screen to the far left, so that the cursor is not visible.
*/
left: -9999em;
opacity: 0;
width: 0;
height: 0;
z-index: -10;
}

.terminal .terminal-cursor {
background-color: #fff;
color: #000;
}

.terminal:not(:focus) .terminal-cursor {
.terminal:not(.focus) .terminal-cursor {
outline: 1px solid #fff;
outline-offset: -1px;
background-color: transparent;
}

.terminal:focus .terminal-cursor.blinking {
.terminal.focus .terminal-cursor.blinking {
animation: blink-cursor 1.2s infinite step-end;
}

Expand All @@ -73,6 +91,18 @@
}
}

.terminal .composition-view {
background: #000;
color: #FFF;
display: none;
position: absolute;
white-space: nowrap;
}

.terminal .composition-view.active {
display: block;
}

/*
* Determine default colors for xterm.js
*/
Expand Down
Loading

0 comments on commit 10fbf0d

Please sign in to comment.