Skip to content
Open

Fix #393

Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

A curses-like library with a high level terminal interface API for node.js.

![blessed](https://raw.githubusercontent.com/chjj/blessed/master/img/v0.1.0-3.gif)
Forked from the original [blessed](https://github.com/chjj/blessed) to make it
work with `node-pty` instead of `pty.js`.

![blessed](https://raw.githubusercontent.com/danikaze/blessed/master/img/v0.1.0-3.gif)

Blessed is over 16,000 lines of code and terminal goodness. It's completely
implemented in javascript, and its goal consists of two things:
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ Terminal.prototype.bootstrap = function() {
return;
}

this.pty = require('pty.js').fork(this.shell, this.args, {
this.pty = require('node-pty').fork(this.shell, this.args, {
name: this.termName,
cols: this.width - this.iwidth,
rows: this.height - this.iheight,
Expand Down
26 changes: 26 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,25 @@
"name": "blessed",
"description": "A high-level terminal interface library for node.js.",
"author": "Christopher Jeffrey",
"version": "0.1.81",
"contributors": ["danikaze <danikaze@gmail.com>"],
"version": "0.1.82",
"license": "MIT",
"main": "./lib/blessed.js",
"bin": "./bin/tput.js",
"preferGlobal": false,
"repository": "git://github.com/chjj/blessed.git",
"homepage": "https://github.com/chjj/blessed",
"bugs": { "url": "http://github.com/chjj/blessed/issues" },
"repository": "git://github.com/danikaze/blessed.git",
"homepage": "https://github.com/danikaze/blessed",
"bugs": { "url": "http://github.com/danikaze/blessed/issues" },
"keywords": ["curses", "tui", "tput", "terminfo", "termcap"],
"tags": ["curses", "tui", "tput", "terminfo", "termcap"],
"engines": {
"node": ">= 0.8.0"
},
"browserify": {
"transform": ["./browser/transform.js"]
},
"dependencies": {
"node-pty": "^0.9.0",
"term.js": "0.0.7"
}
}
2 changes: 1 addition & 1 deletion vendor/tng.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function PNG(file, options) {
if (!file) throw new Error('no file');

this.options = options || {};
this.colors = options.colors || require('blessed/lib/colors');
this.colors = options.colors || require('../lib/colors')
this.optimization = this.options.optimization || 'mem';
this.speed = this.options.speed || 1;

Expand Down