Terminal.reset
void reset(bool clearTabstops, bool clearHistory)Resets as much of the terminal's internal state as possible, discarding any unprocessed input data, resetting character attributes, cursor state, national character set state, status line, terminal modes (insert/delete), selection state, and encoding.
Parameters
clearTabstops | whether to reset tabstops |
clearHistory | whether to empty the terminal's scrollback buffer |