 
   onResize: (callback) ->
     @emitter.on 'resize', callback
-
-  forkPtyProcess: (sh, args=[])->
-
 
   input: (data) ->
     try


      @ptyProcess.on 'term2:data', (data) =>
        utf8 = new Buffer(data, "base64").toString("utf-8")
        console.log 'pty', utf8
        @term.write utf8
        @emitter.emit('data', data)


    catch error
      console.error error
    @resizeToPane()
    @focusTerm()

  attached: () ->
    {cols, rows, cwd, shell, shellArguments, shellOverride, runCommand, colors, cursorBlink, scrollback} = @opts
