Skip to content

Commit

Permalink
Implement buffer serializing
Browse files Browse the repository at this point in the history
  • Loading branch information
parisk committed May 6, 2017
1 parent 7f8f8ff commit e6eaca4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion demo/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function createTerminal() {
protocol = (location.protocol === 'https:') ? 'wss://' : 'ws://';
socketURL = protocol + location.hostname + ((location.port) ? (':' + location.port) : '') + '/terminals/';

term.open(terminalContainer);
term.open(terminalContainer, true);
term.fit();

var initialGeometry = term.proposeGeometry(),
Expand Down
1 change: 1 addition & 0 deletions src/xterm.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ Terminal.prototype.getState = function() {
];

let state = {
buffer: this.lines._array,

This comment has been minimized.

Copy link
@Tyriar

Tyriar May 6, 2017

Member

FYI I'm looking at modifying CircularList to also have a unique ID for each value so outside functions can more easily map things to lines. This is mainly for the selection changes but also has other use cases like in links.

Also its probably a good idea to expose a serialize and deserialize function on CircularList, so it's handled by the object.

This comment has been minimized.

Copy link
@parisk

parisk May 7, 2017

Author Contributor

Yes, that would be perfect 👍 .

cursor: this._getCursor(),
geometry: this.geometry,
mode: this._getMode(),
Expand Down

0 comments on commit e6eaca4

Please sign in to comment.