hterm 1.6: Track terminal size on the io object.

This installs a default onTerminalResize handler on the
hterm.Terminal.IO object that records the most recent
terminal size as io.columnCount and io.rowCount.  This
gives consumers synchronous access to these values without
having to wire up the event handler themselves.

BUG=None
TEST=hterm_test.html, 66/66 tests passed.

Change-Id: I14f5195dd8111a31a6a108172673a81fc4d30f0e
Reviewed-on: https://gerrit.chromium.org/gerrit/56611
Reviewed-by: Marius Schilder <mschilder@google.com>
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
3 files changed
tree: af4a47a12f5df43b6020a85c3ab798fe1b64206e
  1. crosh_builtin/
  2. hterm/
  3. libdot/
  4. nassh/