jart / hiptext

Turn images into text better than caca/aalib
Apache License 2.0
765 stars 44 forks source link

Don't add final newline in render algos #42

Open tombh opened 7 years ago

tombh commented 7 years ago

All the output alogorithms were adding a newline after every line, including the last line. This meant that there would always be height+1 lines affected. If an image's height was calculated to be the full height of the terminal then this last height+1 newline would shift the entire image 1 row up. This wasn't so noticeable for static images, but caused annoying flickering during the rapid updates of multiple images in movies, etc.