/*
* CommonJS environment
*/
- module.exports = attach(require('../../src/xterm'));
+ module.exports = attach(require('../../dist/xterm'));
} else if (typeof define == 'function') {
/*
* Require.js is available
*/
- define(['../../src/xterm'], attach);
+ define(['../../dist/xterm'], attach);
} else {
/*
* Plain browser environment
/*
* CommonJS environment
*/
- module.exports = fit(require('../../src/xterm'));
+ module.exports = fit(require('../../dist/xterm'));
} else if (typeof define == 'function') {
/*
* Require.js is available
*/
- define(['../../src/xterm'], fit);
+ define(['../../dist/xterm'], fit);
} else {
/*
* Plain browser environment
/*
* CommonJS environment
*/
- module.exports = fullscreen(require('../../src/xterm'));
+ module.exports = fullscreen(require('../../dist/xterm'));
} else if (typeof define == 'function') {
/*
* Require.js is available
*/
- define(['../../src/xterm'], fullscreen);
+ define(['../../dist/xterm'], fullscreen);
} else {
/*
* Plain browser environment
/*
* CommonJS environment
*/
- module.exports = linkify(require('../../src/xterm'));
+ module.exports = linkify(require('../../dist/xterm'));
} else if (typeof define == 'function') {
/*
* Require.js is available
*/
- define(['../../src/xterm'], linkify);
+ define(['../../dist/xterm'], linkify);
} else {
/*
* Plain browser environment
position: absolute;
opacity: 0;
left: -9999em;
+ top: -9999em;
width: 0;
height: 0;
z-index: -10;
Terminal.loadAddon = function(addon, callback) {
if (typeof exports === 'object' && typeof module === 'object') {
// CommonJS
- return require(__dirname + '/../addons/' + addon);
+ return require('../addons/' + addon);
} else if (typeof define == 'function') {
// RequireJS
return require(['../addons/' + addon + '/' + addon], callback);
/**
- * Emit the 'data' event and populate the given data.
- * @param {string} data The data to populate in the event.
- */
+ * Emit the 'data' event and populate the given data.
+ * @param {string} data The data to populate in the event.
+ */
Terminal.prototype.handler = function(data) {
this.emit('data', data);
};
/**
- * CSI Ps T Scroll down Ps lines (default = 1) (SD).
- */
+ * CSI Ps T Scroll down Ps lines (default = 1) (SD).
+ */
Terminal.prototype.scrollDown = function(params) {
var param = params[0] || 1;
while (param--) {
var assert = require('chai').assert;
-var Terminal = require('../../src/xterm');
+var Terminal = require('../../dist/xterm');
var linkify = require('../../addons/linkify/linkify');
describe('linkify addon', function () {
var assert = require('chai').assert;
var Terminal = require('../../src/xterm');
+var distTerminal = require('../../dist/xterm');
describe('xterm.js addons', function() {
it('should load addons with Terminal.loadAddon', function () {
Terminal.loadAddon('attach');
- // Test that function was loaded successfully
- assert.equal(typeof Terminal.prototype.attach, 'function');
+ // Test that addon was loaded successfully
+ assert.equal(typeof distTerminal.prototype.attach, 'function');
});
});