         @emit 'exit', rawdata[0]
 
     @stdout.on 'resize', =>
-      @aLine = new Array(@stdout.columns+1).join(' ')
+      @line = new Array(@stdout.columns+1).join(' ')
       @emit 'resize'
 
     return

    return @

  color: (data) ->
    fore = (if data.fore? then data.fore else null)
    back = (if data.back? then data.back else null)
    if fore and back
      @set '[' + @codes.colors[fore].fore + ';' + @codes.colors[back].back + 'm'
    else if fore
      @set '[' + @codes.colors[fore].fore + 'm'
    else if back
      @set '[' + @codes.colors[back].back + 'm'
    return @

  format: (code) ->

  process: null
  stdin: null
  stdout: null
  line: null

  constructor: (process) ->
    @process = process
    {@stdin, @stdout, @argv} = process
    #@argv = @argv.slice 2
    @line = new Array(@stdout.columns+1).join(' ')
    @codes = require './codes'
    @handlers = require './handlers'

    @stdin.setRawMode true

