     @set '[?47l'
     return this
 
-  define: (option, data) ->
-    if typeof option is 'string' and typeof data isnt 'undefined'
-      @options[option] = data
-    return this
-
+  # ~~~
+  # Custom eventing
   on: (name, func) ->
     if typeof name is 'string' and typeof func is 'function'
       @event[name] = func

    return this


  save: ->
    @set '[?47h'
    return this

tty = require 'tty'
code = require './resources'

module.exports =
class Frame
  process: null
  stdin: null
  stdout: null
  event: {}
  aLine: null

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

    @stdin.setRawMode true
