Refresh terminal only when it is needed

- Avoid refreshing terminal if the index is same
- Include empty cursor in `Post#format_for_term`