3 ms·
Termux can use Android intents (termux-open), and interact with the system in multiple ways, see pastebin of commands: https://pastebin.com/raw/4e7UwM57 https:
by dredmorbius 7y ago
Termux can use Android intents (termux-open), and interact with the system in multiple ways, see pastebin of commands:
https://pastebin.com/raw/4e7UwM57 https://pastebin.com/raw/4e7UwM57
Primary app-to-termux interaction is via the filesystem and saved content -- downloads and the like. For obvious reasons, arbitrary command access to Termux from apps would be hazardous, much as it is on any desktop OS. Android filesystem access restricts this somewhat, though the system Downloads and "My Documents" directories are globally accessible.
There is also clipboard integration (termux-clipboard-get and -set), which I've aliased to xc and xp, respectively, much as I do similar OSX and Linux commands. So "xp | vim -" is a thing.
Very handy use is a titlecase script which converts strings, especially all-caps, for HN submission:
xp | titlecase > tmpfile && xc < tmpfile && rm tmpfile
(The script handles numerous edge cases.)
As for Google accessing Termux: Why would I want that? Google already has its (badly crippled) Android userland, as well as OS APIs and features. Termux is principally a userland -- a shell and utilities for user-initiated and directed interactions.
See by comparison Debian's Social Contract, Policy, and other guiding documents. Key among their principles is that the project's focus is its users, and that its policies serve to constrain the developers as to what they must provide, and must not do. Though Termux lacks such specific language its spirit (and Debian heritage) strongly suggest a similar orientation and philosophy.
As for "it's an app", that's both solipsistic and utterly fails to recognise that this app is singularly powerful and expansive in the spirit of the original Unix,[1] in ways that effectively no other single Android app (save other user command shells) can even hope to be.
________________________________
Notes:
1. See K&P's The UNIX Programming Environment (https://en.wikipedia.org/wiki/The_Unix_Programming_Environment https://en.wikipedia.org/wiki/The_Unix_Programming_Environme...). My 'Tyranny of the Minimum Viable User" addresses the distiction as well: https://old.reddit.com/r/dredmorbius/comments/69wk8y/the_tyranny_of_the_minimum_viable_user/ https://old.reddit.com/r/dredmorbius/comments/69wk8y/the_tyr...