/**
 * input.js - abstract input element for blessed
 * Copyright (c) 2013-2015, Christopher Jeffrey and contributors (MIT License).
 * https://github.com/chjj/blessed
 */

/**
 * Modules
 */

const Node = require('./node')
const Box = require('./box')

/**
 * Input
 */

function Input(options) {
  if (!(this instanceof Node)) {
    return new Input(options)
  }
  options = options || {}
  Box.call(this, options)
}

Object.setPrototypeOf(Input.prototype, Box.prototype)

Input.prototype.type = 'input'

/**
 * Expose
 */

module.exports = Input
