term.input.history.new

term.input.history

new(mode, store) -> history

Create a new history instance

Creates a history object for the given mode (e.g. "shell", "lua"). If store is provided, history is persisted and loaded on creation.