Allow one space at the end of the line for the cursor

Some terminals will insert an artificial newline if the cursor wraps. In
particular, Windows' Console does this.

Fixes #26