Skip to content

Added: Add termux-screenshot CLI - #243

Open
involvex wants to merge 1 commit into
termux:masterfrom
involvex:feature/termux-screenshot
Open

involvex wants to merge 1 commit into
termux:masterfrom
involvex:feature/termux-screenshot

Conversation

@involvex

Copy link
Copy Markdown

Summary

  • Add scripts/termux-screenshot.in (getopts, @TERMUX_PREFIX@/libexec/termux-api Screenshot)
  • Register in CMakeLists.txt script_files

Depends on termux/termux-api#913 (api_method=Screenshot / MediaProjection). Please merge the Java API first (or together).

Usage

termux-screenshot                 # default: \C:\Users\lukas/repos/screen-ocr/latest.png
termux-screenshot -d 500 out.png  # delay after consent

Test plan

  • Install rebuilt termux-api package with this script
  • With Screenshot API APK: capture writes PNG and prints path
  • Without API: clear failure from termux-api

Made with Cursor

Companion to termux-api Screenshot API. Saves PNG via libexec/termux-api Screenshot.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant