Optionalhistory: ExitObject[] = []an optional history of commands to initialize the terminal with
Get the items in the history.
Resets the index to the beginning of the history.
Retrieves the active item at the current index in the terminal's history.
the item at the current index in the terminal's history; if no item is active, returns undefined
Removes the first item from the terminal's history.
the popped item; if the history is empty, returns undefined
Adds an item (or list of items) to the beginning of the terminal's history.
the item (or list of items) to add to the history
the new length of the history
Shifts the history index to the previous item in the terminal's history.
the previous item in the terminal's history; if no items are in the history returns undefined, and if it is on the last item in the history returns null
Shifts the history index to the next item in the terminal's history.
the next item in the terminal's history; if no item is available or you are on the first item in the history returns undefined
Manages the terminal's history of commands.