Skip to content

f/pty.coffee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Psuedo Terminal port in CoffeeScript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published