{"id":31628061,"url":"https://github.com/jirutka/tty-copy","last_synced_at":"2025-10-06T20:17:30.019Z","repository":{"id":43023538,"uuid":"463347389","full_name":"jirutka/tty-copy","owner":"jirutka","description":"Copy content to system clipboard via TTY and terminal using ANSI OSC52 sequence","archived":false,"fork":false,"pushed_at":"2024-09-22T17:27:44.000Z","size":33,"stargazers_count":102,"open_issues_count":3,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-06-08T19:35:29.082Z","etag":null,"topics":["clipboard","command-line-tool","copy-paste","osc52","terminal","tty"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jirutka.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-25T00:41:52.000Z","updated_at":"2025-06-04T14:14:26.000Z","dependencies_parsed_at":"2023-01-23T08:05:15.520Z","dependency_job_id":null,"html_url":"https://github.com/jirutka/tty-copy","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jirutka/tty-copy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jirutka%2Ftty-copy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jirutka%2Ftty-copy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jirutka%2Ftty-copy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jirutka%2Ftty-copy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jirutka","download_url":"https://codeload.github.com/jirutka/tty-copy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jirutka%2Ftty-copy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278672041,"owners_count":26025826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clipboard","command-line-tool","copy-paste","osc52","terminal","tty"],"created_at":"2025-10-06T20:17:28.751Z","updated_at":"2025-10-06T20:17:30.010Z","avatar_url":"https://github.com/jirutka.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"= tty-copy\n:proj-name: tty-copy\n:version: 0.2.2\n:gh-name: jirutka/{proj-name}\n:releases-uri: https://github.com/{gh-name}/releases/download/v{version}\n\nifdef::env-github[]\nimage:https://github.com/{gh-name}/workflows/CI/badge.svg[Binaries Workflow, link=https://github.com/{gh-name}/actions?query=workflow%3A%22CI%22]\nimage:https://repology.org/badge/tiny-repos/{proj-name}.svg[Packaging status, link=https://repology.org/project/{proj-name}]\nendif::env-github[]\n\nA utility for copying content to the system clipboard from *anywhere* via a TTY and terminal using the https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Operating-System-Commands[ANSI OSC52] sequence.\nIt works in any terminal session, whether local, remote (e.g. SSH), or even nested therein!\n\nRefer to link:tty-copy.1.adoc[tty-copy(1)] for usage information.\n\n\n== Supported Terminals\n\nHere is a non-exhaustive list of the status of popular terminal emulators regarding OSC52 footnote:[This list was originally copied from https://github.com/ojroques/vim-oscyank[vim-oscyank].]:\n\n|===\n| Terminal | OSC 52 support\n\n| https://github.com/alacritty/alacritty[Alacritty]\n| *yes*\n\n| https://github.com/contour-terminal/contour[Contour]\n| *yes*\n\n| https://github.com/elfmz/far2l[far2l]\n| *yes*\n\n| https://codeberg.org/dnkl/foot[foot]\n| *yes*\n\n| https://github.com/GNOME/gnome-terminal[GNOME Terminal] (and other VTE-based terminals)\n| https://bugzilla.gnome.org/show_bug.cgi?id=795774[not yet]\n\n| https://iterm2.com/[iTerm2]\n| *yes*\n\n| https://github.com/kovidgoyal/kitty[kitty]\n| *yes*\n\n| https://konsole.kde.org[Konsole]\n| *yes* (https://bugs.kde.org/show_bug.cgi?id=372116[since 24.12])\n\n| https://github.com/lxqt/qterminal[QTerminal]\n| https://github.com/lxqt/qterminal/issues/839[not yet]\n\n| http://rxvt.sourceforge.net/[rxvt]\n| *yes* (to be confirmed)\n\n| https://www.gnu.org/software/screen/[screen]\n| *yes*\n\n| https://en.wikipedia.org/wiki/Terminal_(macOS)[Terminal.app]\n| no, but see https://github.com/matvore/pb52[workaround]\n\n| https://github.com/tmux/tmux[tmux]\n| *yes*\n\n| http://software.schmorp.de/pkg/rxvt-unicode.html[urxvt]\n| *yes* (with a script, see https://github.com/ojroques/vim-oscyank/issues/4[here])\n\n| https://github.com/microsoft/terminal[Windows Terminal]\n| *yes*\n|===\n\n\n== Requirements\n\n.*Runtime*:\n* UNIX-like system\n\n.*Build*:\n* C compiler and linker supporting at least C99 (tested with clang and gcc)\n* https://www.gnu.org/software/make/[GNU Make]\n* http://asciidoctor.org/[Asciidoctor] (for building man pages)\n\n\n== Installation\n\n=== On Alpine Linux\n\nInstall package https://pkgs.alpinelinux.org/packages?name={proj-name}[{proj-name}] from the Alpine’s community repository:\n\n[source, sh, subs=\"+attributes\"]\napk add {proj-name}\n\n\n=== On Arch Linux\n\nInstall package https://aur.archlinux.org/packages/{proj-name}[{proj-name}] from AUR:\n\n[source, sh, subs=\"+attributes\"]\nyay -S {proj-name}\n\nOr use another AUR helper.\n\n\n=== On Fedora\n\nInstall package https://packages.fedoraproject.org/pkgs/{proj-name}/{proj-name}/[{proj-name}] from the Fedora repositories (since Fedora 35):\n\n[source, sh, subs=\"+attributes\"]\ndnf install {proj-name}\n\n\n=== Using Pre-Built Binary\n\n🐧 *Linux*:\n{releases-uri}/{proj-name}.x86_64-linux[[x86_64]]\n{releases-uri}/{proj-name}.aarch64-linux[[aarch64]]\n{releases-uri}/{proj-name}.armv7-linux[[armv7]]\n{releases-uri}/{proj-name}.ppc64le-linux[[ppc64le]]\n{releases-uri}/{proj-name}.riscv64-linux[[riscv64]] +\n *macOS*:\n{releases-uri}/{proj-name}.x86_64-darwin[[x86_64]]\n\n. Download and verify {proj-name} binary for your CPU architecture (pick the right link from the list above), for example:\n+\n[source, sh, subs=\"verbatim, attributes\"]\n----\ncurl -sSLO {releases-uri}/{proj-name}.x86_64-linux\ncurl -sSL {releases-uri}/checksums.txt | sha256sum -c --ignore-missing\n----\n\n. Install `{proj-name}` somewhere on your `PATH`, e.g. `/usr/local/bin`:\n+\n[source, sh, subs=\"verbatim, attributes\"]\ninstall -m 755 {proj-name}.* /usr/local/bin/{proj-name}\n\nAll binaries are statically linked with http://www.musl-libc.org/[musl libc], so they work on every Linux system (distro) regardless of used libc.\n\n\n=== From Source Tarball\n\n[source, sh, subs=\"+attributes\"]\n----\nwget https://github.com/{gh-name}/archive/v{version}/{proj-name}-{version}.tar.gz\ntar -xzf {proj-name}-{version}.tar.gz\ncd {proj-name}-{version}\n\nmake build\nmake install DESTDIR=/ prefix=/usr/local\n----\n\n\n== Credits\n\nThis program is inspired from https://github.com/yetamrra/termcopy[termcopy] and https://github.com/ojroques/vim-oscyank[vim-oscyank].\n\n\n== License\n\nThis project is licensed under http://opensource.org/licenses/MIT/[MIT License].\nFor the full text of the license, see the link:LICENSE[LICENSE] file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjirutka%2Ftty-copy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjirutka%2Ftty-copy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjirutka%2Ftty-copy/lists"}