     @resizeToPane()
     @focusTerm()
 
-  forkPtyProcess: (sh, args=[])->
-    processPath = require.resolve './pty'
-    path = atom.project.getPaths()[0] ? '~'
-    Task.once processPath, fs.absolute(path), sh, args
+  # forkPtyProcess: (sh, args=[])->
+  #   processPath = require.resolve './pty'
+  #   path = atom.project.getPaths()[0] ? '~'
+  #   Task.once processPath, fs.absolute(path), sh, args
 
   initialize: (@state)->
     {cols, rows, cwd, shell, shellArguments, shellOverride, runCommand, colors, cursorBlink, scrollback} = @opts
     args = shellArguments.split(/\s+/g).filter (arg) -> arg
-
-    if @opts.forkPTY
-
-
-      @ptyProcess = @forkPtyProcess shellOverride, args
-      @ptyProcess.on 'term2:data', (data) =>
-        console.log('tty', data)
-        @emitter.emit('data', data)
-        @term.write data
-      @ptyProcess.on 'term2:exit', (data) =>
-        @emitter.emit('exit', data)
-        @destroy()
 
     @term = term = new Terminal {
       useStyle: no

    @term.focus()

  resizeToPane: ->
    # return if not @ptyProcess?
    {cols, rows} = @getDimensions()
    return unless cols > 0 and rows > 0

pty = require 'pty.js'
util       = require 'util'
path       = require 'path'
os         = require 'os'
