notty icon indicating copy to clipboard operation
notty copied to clipboard

Integrating with system clipboard

Open withoutboats opened this issue 8 years ago • 5 comments

Currently you can't copy the output of the terminal or paste input into it. This needs to be addressed.

There's also the issue of bracketed paste mode, but that's not as widely used or expected as normal copy and paste.

withoutboats avatar Apr 19 '16 03:04 withoutboats

CharGrid now exposes a chars_in_range method, given a pair of indexes it will return a String containing the characters in that range.

Work still needed in notty:

  • Expose the ability to 'highlight' a section of the grid, so that users can have visual confirmation of their selection.

Work still needed in scaffolding:

  • Capture mouse activity to select portions of the screen.
  • Copy selected portion of the screen into the system clipboard when the appropriate shortcut is pressed.

withoutboats avatar Apr 20 '16 03:04 withoutboats

Notty now exposes a Paste command which can be used to paste data into the terminal. This includes support for bracketed paste mode. Scaffolding still needs to integrate with the system clipboard to implement a paste command for the user.

withoutboats avatar May 25 '16 04:05 withoutboats

Paste is implemented in scaffolding.

withoutboats avatar Jul 18 '16 00:07 withoutboats

Are you still looking for help?

cactorium avatar Aug 04 '16 15:08 cactorium

https://crates.io/crates/copypasta

albinekb avatar Jan 07 '17 01:01 albinekb