A lightweight utility to copy text to the device clipboard using OSC 52.
Project description
TermuxC
Termux copy to clipboard made easy.
Also known as TermuxCopy
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.
Cli Tool Usage:
Copy text
termuxc text
Or
echo "test" | termuxc
Copy text from file
cat filename | termuxc
Copy current working directory
pwd | termuxc
Also compatible with
- bat
- grep
- curl
- head
- tail
Pip package Usage:
Copy text
from TermuxC import Copy
Copy("Str") #works with strings,
Copy(1) # numbers
Copy(1.3) # and floats!
Copy text from file
from TermuxC import Copy
with open("TermuxC.py", "r") as f:
content = f.read()
Copy(content)
Copy current working directory
from TermuxC import Copy
import os
Copy(os.getcwd())
Installation
Install pip package
pip install TermuxC
Uninstallation
pip uninstall TermuxC
Flags
| Flag | Function |
|---|---|
| -f | Force file read |
| -t | Force Text copy |
| -h | Show help menu |
Aditional flag alliases
- --file
- --text
- --help
- -help
Requirements:
Python 3+
Get Python from https://www.python.org!
View Package here! https://pypi.org/project/TermuxC/
Create an issue here! https://github.com/Ruizennis/TermuxC/issues
Tmux support
As of version 2.2.0 And above TermuxC has native tmux support!
License
This project is license under the Mit license, see LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file termuxc-2.4.2.tar.gz.
File metadata
- Download URL: termuxc-2.4.2.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f10d6b87265f4f1b258ff7077d65886b2e717f22b5920cbb2cf313d2141ecf0
|
|
| MD5 |
0a7268508864a4ab07d2440c17a8c8fa
|
|
| BLAKE2b-256 |
4625976b522ed7d6925af18fc60b3c3c38f47c5a4db2ca2d2b30d9a45e3baf60
|
File details
Details for the file termuxc-2.4.2-py3-none-any.whl.
File metadata
- Download URL: termuxc-2.4.2-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
357bef61a88b47ad67f041421502d02bc6a7aaad2aabe93db483ddd7ff7c8c3d
|
|
| MD5 |
6e211f78236fd06cca377ffe823c5d11
|
|
| BLAKE2b-256 |
f9231393e9517136da31dd348aa16d23b277e2e0ceba7efd8625dbc81d237cf0
|