term.clear_line

term

clear_line(mode)

Clear part or all of the current line

Mode 0 (default) clears from cursor to end, 1 from cursor to beginning, 2 the entire line. Cursor position does not change.