Cursor saving now looks for newlines and removes them

Original pull request:

  https://github.com/wincent/command-t/pull/138

Changes:

- double-quotes to singles
- instead of turning newlines into spaces, compress any run of
  whitespace into a single space

Signed-off-by: Greg Hurrell <greg@hurrell.net>
doc: Update for cursor color restoration fix
Merge branch 'vlsd/cursorbug' into next

* vlsd/cursorbug:
  doc: Update for cursor color restoration fix
  Cursor saving now looks for newlines and removes them