{"id":15733312,"url":"https://github.com/kmsquire/xclipboard.jl","last_synced_at":"2026-01-08T21:32:30.992Z","repository":{"id":10577519,"uuid":"12785398","full_name":"kmsquire/XClipboard.jl","owner":"kmsquire","description":"xlib clipboard bindings for julia","archived":false,"fork":false,"pushed_at":"2015-08-09T10:51:06.000Z","size":201,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T08:27:57.166Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kmsquire.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-12T14:11:27.000Z","updated_at":"2021-12-05T17:35:20.000Z","dependencies_parsed_at":"2022-09-22T20:11:47.457Z","dependency_job_id":null,"html_url":"https://github.com/kmsquire/XClipboard.jl","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmsquire%2FXClipboard.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmsquire%2FXClipboard.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmsquire%2FXClipboard.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmsquire%2FXClipboard.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kmsquire","download_url":"https://codeload.github.com/kmsquire/XClipboard.jl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246413229,"owners_count":20773053,"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","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":[],"created_at":"2024-10-04T00:41:40.404Z","updated_at":"2026-01-08T21:32:30.948Z","avatar_url":"https://github.com/kmsquire.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XClipboard.jl: Copy and paste in Julia on XWindows systems\n\nThis is a partial translation of Ed Rosten's [x_clipboard]\n(https://github.com/edrosten/x_clipboard), a nearly complete\ndemonstration of how to use the clipboard and drag and drop in X11.\n\n(See also [here](http://www.edwardrosten.com/code/x11.html) for a nice\noverview.)\n\nAt this point, only pasting into Julia is implemented.\n\nCopy-and-paste in general (and on X11 in particular) is actually a\nrather tedious experience.  It would be great if there were a higher\nlevel, preferably cross-platform library which took care of this, but\nas of mid-2013, I couldn't find one.\n\nNote that Julia Base has a ``clipboard()`` command that already works for\ntext-based copying.  ``xclipboard()`` is meant to allow any kind of \ndata to be pasted, but currently, the parsing of non-text data is up\nto the individual.\n\n# Functions\n\n```julia\nxclipboard([t1, [t2, ...]])   Get the current contents of the X11\n                              clipboard, optionally specifying target\n\t\t\t\t\t\t\t  types.\n\nxclipboard_targets()          Get a list of possible target types\n                              for the current selection\n\ndecodemime(::MIME{mime}, x)   Used to decode a particular target\n                              type.  Currently handles text, and\n                              returns other target types as raw\n                              byte arrays.\n```\n\n# Example\n\n```julia\njulia\u003e using XClipboard\n\njulia\u003e xclipboard_targets()\n10-element Array{MIME{mime},1}:\n MIME type TIMESTAMP               \n MIME type TARGETS                 \n MIME type MULTIPLE                \n MIME type SAVE_TARGETS            \n MIME type UTF8_STRING             \n MIME type COMPOUND_TEXT           \n MIME type TEXT                    \n MIME type STRING                  \n MIME type text/plain;charset=utf-8\n MIME type text/plain              \n\njulia\u003e xclipboard()\n\"Julia: A fresh approach to technical computing\"\n\njulia\u003e xclipboard(\"UTF8_STRING\")\n\"Julia: A fresh approach to technical computing\"\n\njulia\u003e xclipboard(\"text/plain\")\n\"Julia: A fresh approach to technical computing\"\n\njulia\u003e xclipboard(\"text\")\nERROR: Requested clipboard target(s) not found.\n in xclipboard at /home/kmsquire/.julia/v0.3/XClipboard/src/XClipboard.jl:37\n in xclipboard at /home/kmsquire/.julia/v0.3/XClipboard/src/XClipboard.jl:45\n```\n\n# Misc\n\n* Binary data (such as images) can be received from the clipboard.\n  However, decoding is currently left up to the individual.\n\n* Images, in particular, seem to (almost?) always be available as\n  ``image/bmp``; however, there is currently no ``bmp`` decoder in\n  Julia.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkmsquire%2Fxclipboard.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkmsquire%2Fxclipboard.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkmsquire%2Fxclipboard.jl/lists"}