TTY-COPY(1)
π TTY-COPY(1) β the tty-copy manual, bestie π
okay so this is the manual page for tty-copy, aka TTY-COPY(1), and itβs literally about yeeting text into your system clipboard through the TTY. no cap, itβs giving tiny utility with main character energy. π«Ά
πΈ NAME πΈ
tty-copy β copy content to the system clipboard via TTY. periodt. π
β¨ SYNOPSIS β¨
tty-copy [options] [<text...>]
π¦ DESCRIPTION π¦
tty-copy copies the given text to the controlling TTY using OSC 52 escape sequence and base64 encoding. If no text is given, tty-copy copies data from its standard input. slay. β¨
This allows terminals that support OSC 52 to copy the data into the system clipboard. It works in any terminal session, whether local, remote, or even nested therein! The supporting terminal must obviously (a) support OSC 52 and (b) have permission to access the clipboard. iykyk. π
The maximum length of an OSC 52 escape sequence is originally 100 000 bytes in total which means 74 994 bytes of plain text. However, some terminal emulators have higher limit; for example, kitty allows up to 8 MiB by default. lowkey generous. π
For the specification see the section Operating System Controls, code 52, Manipulate Selection Data, in Xterm Control Sequences (https://www.xfree86.org/current/ctlseqs.html). π
π OPTIONS π
-c,--clearβ Instead of copying anything, clear the clipboard so that nothing is copied. bye bye clipboard content π-n,--trim-newlineβ Do not copy the trailing newline character. no sneaky newline, bestie βοΈ-o <file>,--output <file>β Path of the terminal device (defaults to/dev/tty). thatβs the default, fr fr π₯οΈ-p,--primaryβ Use the βprimaryβ clipboard (selection) instead of the regular clipboard. primary selection girlies rise π«Ά-T <type>,--term <type>β Specify the type of the terminal. Currently, only"screen"and"tmux"are recognized, any other value is interpreted as the default.
If not specified, "screen" and "tmux" are autodetected based on the TERM and TMUX environment variables. detective mode activated π
-t,--testβ Test whether your terminal processes the OSC 52 escape sequence β if it does, exits with status code0, otherwise with1.
The fact that the terminal processes the sequence does not necessarily mean that access to the system clipboard will work β it may be disabled. This option only tests if the sequence is intercepted by the terminal or visibly printed on the screen. important caveat, bestie β οΈ
-V,--versionβ Display the version oftty-copyand exit. version check, iconic π-h,--helpβ Display the help message and exit. help me help you π§
π₯ EXIT CODES π₯
0β Clean exit, no error has encountered. β¨1β General error. π10β Invalid usage. π11β I/O error. π
π AUTHORS π
Jakub Jirutka. author icon behavior, honestly. π«Ά
π REPORTING BUGS π
Report bugs to the projectβs issue tracker at https://github.com/jirutka/tty-copy/issues. donβt be shy, bestie β bugs deserve their moment too. πΈ
ttys and kisses π β this was the tty-copy manual, source/version tag TTY-COPY(1), dated 2024-07-20. bye bestie! ππ¦
π¦ where this page comes from
- epel 9: tty-copy 0.2.2-6.el9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms