-
Notifications
You must be signed in to change notification settings - Fork 25
Home
green-green-avk edited this page Jun 12, 2020
·
18 revisions
The successor of Another Term Lite.
Initially it was decided to fill the gap in USB serial dongle terminals that provide features allow comfortable work without a hardware keyboard. However as time passed, it has grown into something closer to Termux. Built-in SSH client has also been added.
See README.md.
- passing content between shell and Android applications — termsh commands list;
- implemented a bit better than Termux:
- passing descriptors via SCM_RIGHTS ancillary messages instead of copying data;
- credentials checking to prevent possible spoofing attacks;
- shell plugins in separate APKs with dev API and signature checking;
- it's supposed to use PRoot with existing Linux repositories — Installing Linux under PRoot;
- libusb (with device enumeration and hot plug/unplug events) support on nonrooted Android;
- access USB and Bluetooth serial dongles right from the shell:
... | $TERMSH serial 9600 | ...or python3 for example:
import subprocess
class Serial:
def __init__(self):
self.proc = subprocess.Popen(('termsh', 'serial', '9600'), stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=None)
def read(self, n):
return self.proc.stdout.read(n)
def write(self, v):
self.proc.stdin.write(v)
self.proc.stdin.flush()
def stop(self):
self.proc.terminate()
def __enter__(self):
return self
def __exit__(self):
self.stop()
return False- but no
amcommand analog yet.
