nassh: connect: improve UI for incomplete connections

We highlight all incomplete fields in red, but users seem to keep
missing that.  They see the disabled "connect" button and think the
program is broken.  We have many reports of this.

Change the UI so the buttons are always enabled, but if you click on
them when the form is incomplete, use the browser's built-in UI to
highlight the exact field that still needs to be completed.

Change-Id: I501e7172cf1ed76cdd8295353a4aa841039a7a11
Tested-by: kokoro <>
Reviewed-by: Joel Hockey <>
1 file changed
tree: 21cca86dc542a6201111d1dc931dc3bc860bbac5
  1. .clang-format
  2. .eslintrc.js
  3. .gitignore
  4. .markdownlintrc
  5. .npmrc
  6. .pylintrc
  7. CPPLINT.cfg
  8. Dockerfile
  11. OWNERS
  12. PRESUBMIT.cfg
  14. hterm/
  15. kokoro/
  16. libdot/
  17. nassh/
  19. package.json
  20. ssh_client/
  21. terminal/
  22. wasi-js-bindings/
  23. wassh/


This repository contains the libdot JavaScript library and some web applications that make use of it.

The official copy of this repository is hosted at

There is also a mirror on github at A few subprojects are also extracted out into their own git repo and mirrored. Keep in mind that these mirrors may occasionally be behind the official repository.

All changes must go through the Gerrit code review server on Github pull requests cannot be accepted. Please see the document in this directory for the details.

Top level directories

  • libdot/ is a small set of JS libraries initially developed as part of hterm, now available as shared code.

  • hterm/ is a JS library that provides a terminal emulator. It is reasonably fast, reasonably correct, and reasonably portable across browsers.

  • nassh/ is the Secure Shell Chrome extension that combines hterm with a NaCl build of OpenSSH to provide a PuTTY-like app for Chrome users.

  • ssh_client/ is the NaCl port of OpenSSH. It is used by nassh to create the Secure Shell App.