这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@nullablepointer
Copy link

@nullablepointer nullablepointer commented Jun 21, 2024

Feel free to review and make changes!

Requires termux-api pull request to be merged: termux/termux-api#686

if [ $# = 1 ]; then
@TERMUX_PREFIX@/libexec/termux-api BluetoothScan --es mode "$1"
else
echo "$SCRIPTNAME: You didnt specify the mode to use." >&2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't


SCRIPTNAME=termux-bluetooth-scan
show_usage () {
echo "Usage: $SCRIPTNAME <start/stop/info>"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I requested a change to info in termux/termux-api#686 - update this once we agree on a verb over there.

scripts/termux-api-stop
scripts/termux-audio-info
scripts/termux-battery-status
scripts/termux-bluetooth-scan
Copy link

@MatejMagat305 MatejMagat305 Jun 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, it would be better name "termux-bluetooth" - without "-scan", or no? It will probably has continuetion as "connect", "listen" or "send", am I wrong?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take a look at the rest of this list - there's a lot of termux-$system-$behavior. termux-bluetooth-scan looks consistent to me.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, it is true ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants