tweak to terminal handling
Added tag 3.6 for changeset 08e5417f1871
some refactoring
bump version to 3.8
updates to copyright and license info