Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Buffer and BufferSet classes #717

Merged
merged 26 commits into from
Jul 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
b3a3501
Introduce new Buffer and BufferSet classes
parisk Jun 18, 2017
74ac1e1
Create `terminal.buffer` convenience attribute
parisk Jun 18, 2017
65a2fd4
Start isolating buffer attributes into Buffer class
parisk Jun 18, 2017
e1d39fe
Fix some references
parisk Jun 18, 2017
60e0678
Fix more references to `buffer.x`
parisk Jun 18, 2017
6628e8f
Move `scrollTop` and `scrollBottom` into `Buffer`
parisk Jun 21, 2017
5c71356
Fix turning from alt screen to normal screen and vice versa. Fix http…
AndrienkoAleksandr Jun 25, 2017
09ff1ac
Fix first set of existing tests
parisk Jun 27, 2017
3ba4639
Fix forgotten merge conflict
parisk Jun 30, 2017
ff03b75
Fix SelectionManager initializing
parisk Jun 30, 2017
fe25494
Fix some tests and docs, little code fix up.
AndrienkoAleksandr Jun 30, 2017
6f63705
Add `buffers` to the `ITerminal`
parisk Jun 30, 2017
9ead7fa
Fix CircularList type and a typo
parisk Jul 9, 2017
5f3bed7
Fix SelectionManager tests
parisk Jul 9, 2017
20e03cd
Correct references to buffer lines
parisk Jul 9, 2017
331ef9b
Add semicolons
parisk Jul 9, 2017
e15134d
Fix reference to `terminal.buffer.lines`
parisk Jul 9, 2017
f8bea9d
Fix regression. Existing tests work again.
AndrienkoAleksandr Jul 12, 2017
044faa5
Fix variable name
parisk Jul 14, 2017
f840997
Improve documentation of `Buffer` and `BufferSet` classes
parisk Jul 14, 2017
1a2e3fb
Implement tests for `Buffer` and `BufferSet`
parisk Jul 15, 2017
c27431b
Add IBuffer, IBufferSet and fix CircularList type
Tyriar Jul 15, 2017
e1903c6
Remove redundant comment
parisk Jul 15, 2017
6d002ca
Rearrange dependencies
parisk Jul 16, 2017
1fca4f0
Update build dir
parisk Jul 16, 2017
4cefa34
Install npm 5.1.0
parisk Jul 16, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq install g++-4.8 ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX=g++-4.8 ; fi
- npm install -g npm@5.1.0
env:
matrix:
- NPM_COMMAND=lint
Expand Down
17 changes: 15 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const sorcery = require('sorcery');
const source = require('vinyl-source-stream');
const sourcemaps = require('gulp-sourcemaps');
const ts = require('gulp-typescript');

const util = require('gulp-util');

let buildDir = process.env.BUILD_DIR || 'build';
let tsProject = ts.createProject('tsconfig.json');
Expand Down Expand Up @@ -121,13 +121,26 @@ gulp.task('mocha', ['instrument-test'], function () {
.pipe(istanbul.writeReports());
});

/**
* Run single test file by file name(without file extension). Example of the command:
* gulp mocha-test --test InputHandler.test
*/
gulp.task('mocha-test', ['instrument-test'], function () {
let testName = util.env.test;
util.log("Run test by Name: " + testName);
return gulp.src([`${outDir}/${testName}.js`, `${outDir}/**/${testName}.js`], {read: false})
.pipe(mocha())
.once('error', () => process.exit(1))
.pipe(istanbul.writeReports());
});

/**
* Use `sorcery` to resolve the source map chain and point back to the TypeScript files.
* (Without this task the source maps produced for the JavaScript bundle points into the
* compiled JavaScript files in ${outDir}/).
*/
gulp.task('sorcery', ['browserify'], function () {
var chain = sorcery.loadSync(`${buildDir}/xterm.js`);
let chain = sorcery.loadSync(`${buildDir}/xterm.js`);
chain.apply();
chain.writeSync();
});
Expand Down
Loading