hterm 1.53: Add 'alt-gr-mode' preference.

* Add a preference to select the preferred AltGr heuristic.  This replaces the
  change from 1.52, which prevented the use of Ctrl-Alt-... on all platforms.
  The new preference takes one of the following values:

    null: Autodetect based on navigator.locale:
          'en-us' => 'none', else => 'right-alt'
    'none': Disable any AltGr related munging.
    'ctrl-alt': Assume Ctrl+Alt means AltGr.
    'left-alt': Assume left Alt means AltGr.
    'right-alt': Assume right Alt means AltGr.

  The default value is null.  Autodection won't work in many cases, and the
  left-alt/right-alt tracking will have issues if the window loses focus
  while the alt key is down, but this may be the best we can do on the web.

Change-Id: I47b7e156262c57e8ce2ce265f89f90b1aba48d88
Reviewed-by: Marius Schilder <>
Commit-Queue: Marius Schilder <>
Tested-by: Marius Schilder <>
5 files changed
tree: a43b695fce241f88f0065e628e39c886c2530683
  1. .gitignore
  4. hterm/
  5. libdot/
  6. nassh/
  7. package.json
  8. saltpig/
  9. wam/
  10. wash/


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 Keep in mind that this mirror 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. It provides a base layer for web applications. The code is intended to work in any modern browser, in either a plain web page or a “privileged” environment such as a Chrome platform application or Firefox extension. In practice, it's only been put to use in Chrome platform applications so far.

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

  • nassh/ is a Chrome App (currently a “v1.5” app, soon to become a “v2” or platform app) that combines hterm with a NaCl build of OpenSSH to provide a PuTTY-like app for Chrome users.

  • wash/ is a library for cross-origin virtual filsystems, similar to the Plan 9 filesystem. This directory also contains a simple bash-like shell environment for exploring these filesystems. The code in this directory is a work-in-progress.