stefanheule / smartless

A pager similar to less, but smarter
Apache License 2.0
24 stars 5 forks source link

Support ^M (move up one line) #12

Open viridium opened 6 years ago

viridium commented 6 years ago

I use tools that write tons of updates on the screen using ^M to erase and then overwrite lines. The output is usually less than a screen long, but the intermediate lines add up to many screens. Can smartless support ^M with its intended behavior?

stefanheule commented 6 years ago

Can you provide a minimal testcase with the expected behavior (e.g. a script that outputs ^M, or a command)? I can't promise I will be able to add support for it, but if I have some time I can look into it. I'm also happy to accept pull requests if you want to have a go.