Fredrik Fornwall
10 years ago
2 changed files with 1 additions and 20 deletions
@ -1,19 +0,0 @@ |
|||||
#!/system/bin/sh |
|
||||
|
|
||||
if [ "$1" = "-h" -o "$1" = "--help" ]; then |
|
||||
echo "Usage: termux-send-text [TEXT]" |
|
||||
echo "Send text to the Android system as arguments or standard input" |
|
||||
exit |
|
||||
fi |
|
||||
|
|
||||
DATA="$@" |
|
||||
if [ -z "$DATA" ]; then |
|
||||
DATA="`cat -`" |
|
||||
fi |
|
||||
|
|
||||
unset LD_LIBRARY_PATH |
|
||||
am start --user 0 \ |
|
||||
-a android.intent.action.SEND \ |
|
||||
-t "text/plain" \ |
|
||||
--es android.intent.extra.TEXT "$DATA" \ |
|
||||
> /dev/null |
|
Loading…
Reference in new issue