gbmhunter / NinjaTerm

A serial port terminal that's got your back.
https://ninjaterm.mbedded.ninja/
GNU General Public License v3.0
74 stars 7 forks source link

Add support for erase-in-display codes with numbers other than 0. #310

Closed gbmhunter closed 4 months ago

gbmhunter commented 8 months ago

Especially useful would be support for "2", which clears the screen.

gbmhunter commented 5 months ago

Erase in display 2 ([2J ) is clearing the whole screen. This should clear the whole screen, move the cursor to home (top-left) but leave the scrollback buffer.

Would have to delete all chars from rows below the cursor but leave the rows there, otherwise it would be impossible to scroll so that the cursor is in the top-left.