 
   prompt: (value) ->
     @pos @stdout.rows, 0
-    @color 'black', 'white'
+    @color {fore: 'black', back: 'white'}
     @fillLine()
     @pos @stdout.rows+1, 0
     @write '> ' + (if typeof value != 'undefined' then value else '')

tty = require 'tty'
fs = require 'fs'
{EventEmitter} = require 'events'
Core = require './core'

module.exports =

      @write @encode(Array.prototype.slice.call(arguments))
    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) ->
