Source Layout
The vast majority of the code here lives under js/.
- audio/: Audio files (e.g. the bell alert).
- bin/: Tools for building/testing hterm.
- dist/: Builds of the hterm for integration with other projects.
- docs/: Documentation files.
- etc/: Scripts/snippets for hterm users to leverage terminal features.
- examples/: Example projects using hterm.
- html/:
- images/: Image files (e.g. notification icons).
- js/: The majority of relevant code for hterm.
- test_data/: Various test data and helper scripts.
JavaScript Source Layout
Core logic
Keyboard related code
Supplementary modules
Testing related code
- hterm_test.js: Main unittest runner logic. Locates & runs all tests.
hterm_mock_*.js: Various object mocks to simplify unittests.*_tests.js: Each module has a corresponding set of unittests. The filename follows the convention of adding _tests. e.g. hterm_tests.js contains the tests for hterm.js.