Creates a new Terminal Brick.
The options for the Terminal Brick.
Private
Optional
#keepThe interval of the keep alive function of the Brick instance. This is a private property used to store the interval of the keep alive function.
Private
#programsThe programs of the Brick instance. This is a private property used to store the programs that the Brick can run.
Private
#tasksThe scheduled tasks of the Brick instance. This is a private property used to store the scheduled tasks that the Brick can run.
Optional
aiThe intelligence of the Brick instance. This is used to manage the AI capabilities of the Brick.
Optional
dbThe database of the Brick instance. This is used to manage the data storage and retrieval for the Brick.
The event emitter of the Brick instance. This is used to emit events that occur in the Brick, such as the running of a program.
The unique identifier of the Brick instance.
The TerminalKit module.
The logger used by the Brick instance. This is used to log information about the operation of the Brick.
The name of the Brick instance.
Optional
structureThe parent Structure of the Brick instance, if any.
The TerminalKit terminal instance.
Toggles the keep alive flag of the Brick instance, which will prevent the Node process from exiting
A boolean indicating whether to turn the keep alive flag on or off.
This is useful if you don't have a server or something else keeping the Node process alive.
Adds a program to the private map of programs.
The program to add.
Class representing a Terminal Brick. It extends from the Brick class.
It uses the TerminalKit library to interact with the terminal.
Example