buffer_toscreen() handles all buffer -> screen coord'ing
Pull out buffer linewrap calculation
Cursor limits/scrolling take wrapped lines into account
Check begin != NULL before entering linewrap
Clear the line after wrap - prevent scrolls leaving artefacts