Use character cell attributes in Curses display

Loops are now performed on cells, not lines

Note:
To avoid the scrolling error when writing to the lower right corner, first
put the entire line minus its first char and use insstr() to insert it.