Comparing version 0.0.8 to 0.0.9
@@ -1,2 +0,1 @@ | ||
/* load curses */ | ||
@@ -41,6 +40,7 @@ var curses = require('../curses') | ||
/* setup the subwindow's background and echo Hello world! into it */ | ||
curses.wattrset(subwin, curses.color_pair(GLYPH_COLOR)); | ||
curses.wbkgd(subwin, '\u2591'.charCodeAt(0)); | ||
curses.wbkgd(subwin, ' '.charCodeAt(0)|curses.color_pair(GLYPH_COLOR)|curses.A_REVERSE); | ||
curses.wclear(subwin); | ||
curses.box(subwin, 0, 0); | ||
curses.wmove(subwin, 1, 8); | ||
curses.wattrset(subwin, curses.color_pair(GLYPH_COLOR)); | ||
curses.waddstr(subwin, "Hello world!"); | ||
@@ -47,0 +47,0 @@ curses.wrefresh(subwin); |
{ | ||
"name" : "curses", | ||
"version" : "0.0.8", | ||
"description" : "Bindings for the native curses library, a full featured console IO library.", | ||
"main" : "./curses", | ||
"dependencies" : { | ||
"tar" : ">=0.1.13" | ||
}, | ||
"scripts" : { | ||
"install" : "node ./pre-build.js", | ||
"postinstall" : "node-gyp rebuild --release", | ||
"test" : "node ./test/test.js" | ||
}, | ||
"keywords" : [ | ||
"curses", "console", "IO", | ||
"window", "panel", "UI", | ||
"color", "terminal" | ||
], | ||
"repository" : "git://github.com/fresc81/node-curses.git", | ||
"author" : "Paul Bottin", | ||
"license" : "BSD" | ||
"name": "curses", | ||
"version": "0.0.9", | ||
"description": "Bindings for the native curses library, a full featured console IO library.", | ||
"main": "./curses", | ||
"dependencies": { | ||
"tar": ">=0.1.13" | ||
}, | ||
"scripts": { | ||
"install": "node ./pre-build.js", | ||
"postinstall": "node-gyp rebuild --release", | ||
"test": "node ./test/test.js" | ||
}, | ||
"keywords": [ | ||
"curses", | ||
"console", | ||
"IO", | ||
"window", | ||
"panel", | ||
"UI", | ||
"color", | ||
"terminal" | ||
], | ||
"repository": "git://github.com/fresc81/node-curses.git", | ||
"author": "Paul Bottin", | ||
"license": "BSD" | ||
} |
@@ -81,6 +81,7 @@ | ||
/* setup the subwindow's background and echo Hello world! into it */ | ||
curses.wattrset(subwin, curses.color_pair(GLYPH_COLOR)); | ||
curses.wbkgd(subwin, '\u2591'.charCodeAt(0)); | ||
curses.wbkgd(subwin, ' '.charCodeAt(0)|curses.color_pair(GLYPH_COLOR)|curses.A_REVERSE); | ||
curses.wclear(subwin); | ||
curses.box(subwin, 0, 0); | ||
curses.wmove(subwin, 1, 8); | ||
curses.wattrset(subwin, curses.color_pair(GLYPH_COLOR)); | ||
curses.waddstr(subwin, "Hello world!"); | ||
@@ -96,7 +97,11 @@ curses.wrefresh(subwin); | ||
![hello.js](node-curses/wiki/hello.png) | ||
Look at the bottom of [curses.cc](node-curses/blob/master/src/curses.cc "src/curses") to | ||
see what already has been implemented. | ||
See the ncurses manual for descriptions of the functions. | ||
http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/ | ||
[ncurses HOWTO](http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/ "ncurses HOWTO") | ||
http://invisible-island.net/ncurses/man/ncurses.3x.html | ||
[ncurses manual](http://invisible-island.net/ncurses/man/ncurses.3x.html "ncurses manual") |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64566
21
472
106