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.
New demo that shows how character cell attributes works.