Make console word wrap not so wonky
Fix 2 bugs that erase lines at the top of the console after a resize.
Empty lines caused lines to be discarded and an off-by-one error that
could remove the top line.
Console edit line: fix bug where width < scrollsize caused garbage to be
displayed; make width calculation consistent between ingame/curses
Fix broken colors on windows curses console by using a different method to
set colors - specifying 5-bit r/g/b values. Add support for ^* color string in curses console.