This dual function pip package & cli tool was made to solve an issue with Termux, not allowing copying to device clipboard easily without their companion app; This package solves that.
- Why use TermuxC?
- Installation
- Quick Start
- CLI Tool Usage
- Pip Package Usage
- Flags
- Handling Special Characters
- Requirements
- Troubleshooting
- Allows coping from files or text using OSC52
- Allows piping data
- Requires Zero external dependencies; no extra pip packages required
- Designed specifically to work on Termux
- Termux API app is not required
pip install TermuxCgit clone https://github.com/Ruizennis/TermuxC
cd TermuxCtermuxc hi!termuxc textOr
echo "test" | termuxccat filename | termuxctermuxc -f filenamepwd | termuxc- bat
- grep
- curl
- head
- tail
- ls
from TermuxC import copy
copy("Str") # works with strings,
copy(1) # numbers,
copy(1.3) # and floats!from TermuxC import copy
with open("filename", "r") as f:
content = f.read()
copy(content)from TermuxC import copy
import os
copy(os.getcwd())| Flag | Function |
|---|---|
| -f | Read from file |
| -i | Interactive mode |
| -v | Enable verbose output |
| -h | Show help menu |
| -V | Show package version |
- --file
- --interactive
- --verbose
- --help
- --version
Some text may get interpreted incorrectly by the bash (or zsh) interpreter, to fix this issue wrap your text in single or double quotes
termuxc (
termuxc "("
Python 3.10+