From e70aca4241769a4730cf9f53de0cbf649ae44c5c Mon Sep 17 00:00:00 2001 From: theimpostor Date: Sun, 20 Feb 2022 10:22:01 -0600 Subject: Create README.md --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..ee56b58 --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# osc52 +A command line tool to copy text to the system clipboard from anywhere using the [ANSI OSC52](https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Operating-System-Commands) sequence. + +When this sequence is printed, the terminal will copy the given text into the system clipboard. This is totally location independent, users can copy from anywhere including from remote SSH sessions. + +[List of supported terminals](https://github.com/ojroques/vim-oscyank/blob/main/README.md#vim-oscyank) + +## Installation +``` +go install -v github.com/theimpostor/osc52@latest +``` + +## Usage +``` +Usage: ./osc52 [file1 [...fileN]] +Copies input to system clipboard using the OSC52 escape sequence. +With no file arguments, will read from stdin +``` + +## Credits +Credit and thanks to the the [vim-ocsyank](https://github.com/ojroques/vim-oscyank) plugin -- cgit v1.2.3