mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-12 12:04:32 +00:00
33 lines
560 B
JavaScript
33 lines
560 B
JavaScript
|
/**
|
||
|
* input.js - abstract input element for blessed
|
||
|
* Copyright (c) 2013-2015, Christopher Jeffrey and contributors (MIT License).
|
||
|
* https://github.com/chjj/blessed
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* Modules
|
||
|
*/
|
||
|
|
||
|
var helpers = require('../helpers');
|
||
|
|
||
|
var Node = require('./node');
|
||
|
var Box = require('./box');
|
||
|
|
||
|
/**
|
||
|
* Input
|
||
|
*/
|
||
|
|
||
|
function Input(options) {
|
||
|
if (!(this instanceof Node)) {
|
||
|
return new Input(options);
|
||
|
}
|
||
|
options = options || {};
|
||
|
Box.call(this, options);
|
||
|
}
|
||
|
|
||
|
Input.prototype.__proto__ = Box.prototype;
|
||
|
|
||
|
Input.prototype.type = 'input';
|
||
|
|
||
|
module.exports = Input;
|