Skip to content

Commit 46f6fd1

Browse files
committed
Merge remote-tracking branch 'ups/master' into set_row_height_explicitly
2 parents 603f22a + 4b72791 commit 46f6fd1

File tree

9 files changed

+226
-116
lines changed

9 files changed

+226
-116
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Ian Lewis <[email protected]>
3030
3131
InDieTasten <[email protected]>
3232
Jean Bruenn <[email protected]>
33+
Jeremy Danyow <[email protected]>
3334
Jörg Breitbart <[email protected]>
3435
Justin Mecham <[email protected]>
3536
Lucian Buzzo <[email protected]>

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "xterm.js",
3-
"version": "2.6.0",
3+
"version": "2.7.0",
44
"ignore": ["demo", "test", ".gitignore"],
55
"main": [
66
"dist/xterm.js",

dist/xterm.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@
153153
overflow-y: scroll;
154154
}
155155

156-
.terminal .xterm-wide-char {
156+
.terminal .xterm-wide-char,
157+
.terminal .xterm-normal-char {
157158
display: inline-block;
158159
}
159160

dist/xterm.js

Lines changed: 209 additions & 110 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/xterm.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "xterm",
33
"description": "Full xterm terminal, in your browser",
4-
"version": "2.6.0",
4+
"version": "2.7.0",
55
"ignore": [
66
"demo",
77
"test",

src/Parser.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export class Parser {
181181
*
182182
* @param data The data to parse.
183183
*/
184-
public parse(data: string) {
184+
public parse(data: string): ParserState {
185185
let l = data.length, j, cs, ch, code, low;
186186

187187
this._position = 0;
@@ -564,6 +564,7 @@ export class Parser {
564564
break;
565565
}
566566
}
567+
return this._state;
567568
}
568569

569570
/**

src/handlers/Clipboard.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ export function pasteHandler(ev: ClipboardEvent, term: ITerminal) {
8282
text = prepareTextForTerminal(text, term.browser.isMSWindows);
8383
term.handler(text);
8484
term.textarea.value = '';
85+
term.emit('paste', text);
86+
8587
return term.cancel(ev);
8688
};
8789

src/xterm.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,13 @@ Terminal.prototype.innerWrite = function() {
12531253
this.refreshStart = this.y;
12541254
this.refreshEnd = this.y;
12551255

1256-
this.parser.parse(data);
1256+
// HACK: Set the parser state based on it's state at the time of return.
1257+
// This works around the bug #662 which saw the parser state reset in the
1258+
// middle of parsing escape sequence in two chunks. For some reason the
1259+
// state of the parser resets to 0 after exiting parser.parse. This change
1260+
// just sets the state back based on the correct return statement.
1261+
var state = this.parser.parse(data);
1262+
this.parser.setState(state);
12571263

12581264
this.updateRange(this.y);
12591265
this.refresh(this.refreshStart, this.refreshEnd);

0 commit comments

Comments
 (0)