cmd2.clipboard
cmd2.clipboard
Module provides basic ability to copy from and paste to the clipboard/pastebuffer.
get_paste_buffer
Get the contents of the clipboard / paste buffer.
| RETURNS | DESCRIPTION |
|---|---|
str
|
contents of the clipboard |
write_to_paste_buffer
Copy text to the clipboard / paste buffer.
| PARAMETER | DESCRIPTION |
|---|---|
txt
|
text to copy to the clipboard
TYPE:
|