aboutsummaryrefslogtreecommitdiffstats
path: root/usr/clear.c (follow)
Commit message (Collapse)AuthorAge
* term: ESC[2J, so clear(1) can actually clearuser2026-09-24
The terminal understood SGR and nothing else, so there was no way to erase the screen - printing 18 newlines only scrolls the history up out of sight. term_erase_all blanks the buffer, resets the colours, homes the cursor and repaints; the CSI parser routes 'J' to it, and clear(1) is four putc calls.