Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
7113bb6
reworking structure
bbuecherl Apr 21, 2015
696c616
fix submodule for travis-ci
bbuecherl Apr 22, 2015
4e3c8d8
unix listener working, updated nan to 1.8.4
bbuecherl May 5, 2015
2d5f514
working on windows implementation
bbuecherl May 8, 2015
9bfea70
working on windows implementation
bbuecherl May 12, 2015
ed796b6
working on fixing tests
bbuecherl May 27, 2015
7eda1de
added emit function to unix, added tests for emit
bbuecherl May 28, 2015
b2209c5
added ncurses as direct dependency
bbuecherl Jun 1, 2015
1984a35
improved build system
bbuecherl Jun 2, 2015
22bb4d9
fix linux build errors
bbuecherl Jun 2, 2015
cc7f738
Delete generated.h
bbuecherl Jun 2, 2015
05503d3
reworked structure
bbuecherl Jun 4, 2015
4803a65
more improvements
bbuecherl Jun 8, 2015
06de70f
fix appveyor and cpplint
bbuecherl Jun 8, 2015
5f47118
unix: added some features
bbuecherl Jun 8, 2015
99834df
structured windows implementation
bbuecherl Jun 9, 2015
1846d10
added errors
bbuecherl Jun 10, 2015
160877a
fix build error on variadic macros
bbuecherl Jun 10, 2015
2c5ad9e
added errors, improved mutexes, implemented more unixy functionality
bbuecherl Jun 12, 2015
1d3f759
more work on unix
bbuecherl Jun 14, 2015
cd8f1a5
added example and colored output
bbuecherl Jun 18, 2015
53c320a
switching to tap for tests, working on windows implementation
bbuecherl Jun 23, 2015
c1751ff
key tests passing on unix
bbuecherl Jun 27, 2015
0179767
improved function macro
bbuecherl Jul 1, 2015
4f25b2d
fix
bbuecherl Jul 1, 2015
e626759
fixed windows worker, fixed function macro for windows
bbuecherl Jul 19, 2015
f37faa7
improved installation process
bbuecherl Jul 20, 2015
e2206bb
fixed restart problems
bbuecherl Jul 29, 2015
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: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
build/
node_modules/
npm-debug.log
.DS_Store
generated.h

TODO.md
*.log
spec.js
6 changes: 3 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
build/
node_modules/
npm-debug.log
.DS_Store
generated.h

TODO.md

*.log
spec.js
.gitignore
.travis.yml
appveyor.yml
Expand Down
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ language: node_js
os:
- linux
- osx
env: TTYU_NCURSES_REBUILD=true TTYU_BUILD_DEBUG=true TTYU_CODE_DEBUG=true
node_js:
- "0.8"
- "0.10"
- "0.12"
- "iojs-v1.6.4"
- "iojs-v2.3.0"
install:
- npm install
- npm install --verbose
script:
- npm test
8 changes: 1 addition & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@
- fullscreen detection
- improve examples
- add pixel rendering (e.g. for pngs) functions
- rework goto/write functionality
- add X11 implementations to remove curses where possible
- add 256 color support to windows (using pixel rendering)

## 0.2.0 (WIP)

- added `.pause()` function
- renamed `.stop()` to `.destroy()`
- all functions will throw now when the object was not started or already
destroyed
- added `.emit()` function
Expand All @@ -21,10 +19,6 @@
- added `.type` property to event objects
- iojs support

### TODO

- fix segfault on unix

## 0.1.2

- fixed infinite loop in helper method `util_rgb2term()`
Expand Down
3 changes: 2 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ os: Windows Server 2012 R2
environment:
matrix:
# node.js
# - nodejs_version: "0.8" mocha does not work on windows with v0.8
- nodejs_version: "0.10"
- nodejs_version: "0.12"
TTYU_NCURSES_REBUILD: true # to make sure ncurses does not install
TTYU_BUILD_DEBUG: true

platform:
- x86
Expand Down
101 changes: 68 additions & 33 deletions binding.gyp
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,37 +1,72 @@
{
"targets": [
"targets": [
{
"target_name": "ttyu",
"include_dirs" : [
"<!(node -e \"require('nan')\")",
"include/"
],
"sources": [
"src/core/ttyu_event.cc",
"src/core/ttyu.cc"
],

# pre install script
"actions": [
{
"target_name": "ttyu",
"include_dirs" : [
"<!(node -e \"require('nan')\")",
"deps/ee/",
"include/"
],
"sources": [
"deps/ee/ee.c",
"src/ttyu_event.cc",
"src/ttyu_worker.cc",
"src/ttyu_js.cc",
"src/ttyu.cc",
"src/util.cc"
],
"conditions": [
["OS=='win'", {
"defines": [
"PLATFORM_WINDOWS"
],
"sources": [
"src/win.cc"
]
}, { # "OS!='win"
"libraries": [
"-lcurses" # add curses compiler flag
],
"sources": [
"src/unix.cc"
]
}]
]
"action_name": "preinstall",
"inputs": [ "lib/const.js" ],
"outputs": [ "include/generated.h" ],
"action": [ "node", "installer/index.js" ]
}
]
],

"conditions": [
["OS=='win'", {
"defines": [
"PLATFORM_WINDOWS"
],
"sources": [
"src/win/beep.cc",
"src/win/clear.cc",
"src/win/cursor.cc",
"src/win/emit.cc",
"src/win/goto.cc",
"src/win/mode.cc",
"src/win/colors.cc",
"src/win/resize.cc",
"src/win/start.cc",
"src/win/stop.cc",
"src/win/write.cc",
"src/win/main.cc",
"src/win/utils.cc",
"src/win/worker.cc"
]
}, { # "OS!='win"
"include_dirs": [ "../deps/ncurses" ],
"link_settings": {
"libraries": [ "-lncurses" ],
"library_dirs": [ "../deps/ncurses/lib/" ]
},
"sources": [
"src/unix/beep.cc",
"src/unix/clear.cc",
"src/unix/cursor.cc",
"src/unix/emit.cc",
"src/unix/goto.cc",
"src/unix/mode.cc",
"src/unix/colors.cc",
"src/unix/resize.cc",
"src/unix/start.cc",
"src/unix/stop.cc",
"src/unix/write.cc",
"src/unix/main.cc",
"src/unix/utils.cc",
"src/unix/curses.cc",
"src/unix/worker.cc"
]
}]
]
}
]
}
38 changes: 0 additions & 38 deletions build.js

This file was deleted.

Empty file added deps/.gitkeep
Empty file.
Loading