Overview of Terminal Emulator for Android
mastervi, Emacs, and NetHack.repository·master·Indexed 25 days ago
https://github.com/jackpal/android-terminal-emulatorA terminal emulator for Android that provides a shell interface with VT-100 terminal code emulation. It enables compatibility with text-based programs such as vi, Emacs, and NetHack. The project includes a TerminalEmulator class for managing buffers, cursor state, and UTF-8 mode, as well as a TranscriptScreen implementation for maintaining scrolled data history via a ring buffer.
vi, Emacs, and NetHack.For automated testing or publishing, use the command line tools. Ensure local.properties exists in the root directory before proceeding.
./tools/build-debug./tools/push-and-run-debugTo build TEA, you must tell Gradle where your Android SDK and NDK are located.
local.properties in the root directory of the TEA project.ndk.dir=path/to/ndk
sdk.dir=path/to/sdkIf you are building from the command line, you must also define the ANDROID_SDK_ROOT environment variable in your shell profile (e.g., .profile or .bashrc):
export ANDROID_SDK_ROOT=/path/to/sdkndk.dir=/Users/jack/code/android-ndk-r10d
sdk.dir=/Users/jack/Library/Android/sdkTEA requires the Android 3.0 (API 11) SDK version to be installed. You can install this in two ways:
Option 1: Command Line Run the provided installation script from the project root:
tools/install-sdk-packagesOption 2: Android Studio
tools/install-sdk-packagesBefore releasing, update the version number in the project's manifest file using the provided tool.
tools/increment-version-numberFollow these steps to commit your version changes and tag the git branch with the new version number (e.g., v1.0.xx).
git commit -a -m "Increment version number to v1.0.xx"
git tag v1.0.xx
git push
git push --tagsTo provide a direct download for users who cannot access the Play Store, publish the APK to the gh-pages branch in the downloads/ directory. You must also update the version number in index.html on that branch.
cp ./term/build/outputs/apk/Term.apk /tmp
git checkout gh-pages
mv /tmp/Term.apk downloads/Term.apk
git add downloads/Term.apk
subl index.html
# Update version in index.html
git add index.html
git commit -m "Update to version v1.0.xx"
git push
git checkout masterPublic Download URL: http://jackpal.github.com/Android-Terminal-Emulator/downloads/Term.apk
To publish a new version, use the Android Developer Console at https://play.google.com/apps/publish.
Recommended Workflow to avoid UI errors:
https://play.google.com/store/apps/details?id=jackpal.androidterm.For active development, use the Android Studio IDE:
Android-Terminal-Emulator).Generate the release APK using the build tool. Note that this requires the appropriate signing keys to be present on your system.
tools/build-releaseTerminalEmulator instance, you must provide a TermSession, a TranscriptScreen for rendering, the number of columns and rows to emulate, and a ColorScheme for default colors. The emulator manages both a main buffer and an alternate buffer for screen switching.