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

clearTabstopswhether to reset tabstops
clearHistorywhether to empty the terminal's scrollback buffer