@nu-art/commando
Version:
22 lines (21 loc) • 802 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConsoleScreen = void 0;
const ConsoleContainer_1 = require("./ConsoleContainer");
/**
* An abstract class representing a screen container for Blessed widgets with state management and key bindings.
*
* @template State - The type of the state object.
*/
class ConsoleScreen extends ConsoleContainer_1.ConsoleContainer {
/**
* Creates an instance of ConsoleScreen.
*
* @param {Widgets.IScreenOptions} [props] - The properties to apply to the screen widget.
* @param {ScreenKeyBinding[]} [keyBinding] - An array of key bindings for the screen widget.
*/
constructor(props, keyBinding = []) {
super('screen', props, keyBinding);
}
}
exports.ConsoleScreen = ConsoleScreen;