 tty = require 'tty'
-resources = require './resources'
+code = require './resources'
 
 module.exports =
 class Frame
   process: null
   stdin: null
   stdout: null
-  argv: []
   event: {}
-  options: {}
   aLine: null
 
   constructor: (process) ->
     @process = process
     {@stdin, @stdout, @argv} = process
-    @argv = @argv.slice 2
+    #@argv = @argv.slice 2
     @aLine = new Array(@stdout.columns+1).join(' ')
 
     @stdin.setRawMode true

    return this


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

    @set '[?47l'
    return this

  # ~~~
  # Custom eventing
  on: (name, func) ->
    if typeof name is 'string' and typeof func is 'function'
      @event[name] = func
