pty.coffee

0.0.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i pty.coffee

Weekly Downloads

3

Version

0.0.4

License

MIT

Last publish

Collaborators

  • fkadev