Stebalien / term

A Rust library for terminfo parsing and terminal colors.
https://stebalien.github.io/doc/term/term/
Apache License 2.0
178 stars 49 forks source link

Use `el` not `dl` to erase a line? #67

Closed sourcefrog closed 7 years ago

sourcefrog commented 7 years ago

The docs say that delete_line will

Deletes the text from the cursor location to the end of the line.

According to https://books.google.com/books?id=GsUMLqtYI1UC&pg=PA115&lpg=PA115&dq=terminfo+dl&source=bl&ots=RpLCapUYS3&sig=4xJZMQuoegtf_9kaBSH-zSCf4_o&hl=en&sa=X&ved=0ahUKEwjaqPTZ-4HRAhVGs1QKHck5C4kQ6AEIMzAE#v=onepage&q=terminfo%20dl&f=false this sounds more like terminfo el than dl. That says that el is "erase to end of line" whereas dl "deletes lines in their entirity, with lines from below moving up to fill the gap"

I'm not sure if it's related but dl, ie ESC [0M doesn't seem to actually erase the line in iTerm2 3.0.10.