Creates and has methods to update a Terminal DOM that contains lines.
defaults to -1
Code / Monospace, should be the direct child of the pre tag.
The main DOM wrapper for all DOM elements. Nothing from the terminal should be outside of this element.
Span that contains the final display text of the terminal.
ID number for this instance of the TerminalDOM.
Span elements that hold the lines.
Maximum number of lines displayed, if -1 no cut off.
Preformatted Text, should be the direct child of the container.
Keeps track of number of ids that have been created.
Adds a new line. If no text is specified it defaults to ''.
Will append text to the current line.
Checks to see if changes will result in an overflow.
Clears text and children from inside display span.
Removes the first child of the display element.
Removes the first line from the DOM and lines array.
Adds HTML classes to DOM elements in TerminalDOM.
Will override the any text of the current line with the text passed to this.
Uses idNumber property to set HTML id traits for each of the DOM elements.
Creates an empty container div and appends it to the body.
Get an incremented id number for new TerminalDOM.
Generated using TypeDoc