in reply to Re^2: how do I place text into clipboard on Linux?
in thread how do I place text into clipboard on Linux?
Use it like this (very simple)...
Please, read the perldoc for more types of data that could be added to the clipboard. It defaults to strings.use Tk::Clipboard; my $mw = MainWindow->new(); ... ## after having what you want to copy... $mw->clipboardClear; ## prepare the clipboard (ne +w entry) $mw->clipboardAppend($selected_list); ## copy it (see perldoc)
If you don't use clipboardClear before the second or successive copies, it concatenates what you copy...
| { | \ | ( | ' | v | ' | ) | / | } | ||||||||||||||||||||||||||||||
| ( | \ | _ | / | ) | _ | _ | _ | _ | ` | ( | ) | ' | _ | _ | _ | _ | ||||||||||||||||||||||
| ( | = | ( | ^ | Y | ^ | ) | = | ( | _ | _ | ^ | ^ | ^ | ^ | ||||||||||||||||||||||||
| _ | _ | _ | _ | \ | _ | ( | m | _ | _ | _ | m | ) | _ | _ | _ | _ | _ | _ | _ | _ | _ | ) | c | h | i | a | n | o | , | a | l | b | e | r | t | o |
|
|---|