pty.coffee
v0.0.4
Published
Psuedo Terminal port in CoffeeScript.
Downloads
4
Readme
pty.coffee
Psuedo Terminal port in CoffeeScript.
Note: Doesn't support Windows bindings.
Install
npm install pty.coffee
Example
{PTY} = require 'pty.coffee'
term = new PTY 'bash', [],
name: 'xterm-color'
cols: 80
rows: 30
cwd: process.env.HOME
env: process.env
term.on 'data', (data)->
console.log data
setTimeout (->
term.write "ls | grep i\n"
), 1000