Slimelite BBS

ClipHandler.lha

Back to shell

access the clipboard on the shell

Size
7.6K (7,746 bytes)
Added
2026-11-20 17:29
Downloads
2
Long Description
----------------------------------------------------------------------------- Purpose of the ClipHandler: This handler, once mounted, provides file-access to the contents of the clipboard. Access is limited to text-based clips only. That is, writing into TEXTCLIP: will make the written text available for Amiga-V (paste). Reading from TEXTCLIP: will return the current contents of the clipboard. _____________________________________________________________________________ Examples: (to be used on the shell, after mounting TEXTCLIP) 1> echo "Date" >TEXTCLIP: Now press "Amiga-V". The console will insert the contents of the clipboard into the shell ("Date") and will execute it. 1> copy S:Startup-Sequence to TEXTCLIP: Now open an editor, and press "Amiga-V". This will insert the startup- sequence into the editor. 1> type TEXTCLIP: will print the contents of the current clip to the shell. The ClipHandler can also easily be combined with Rexx, hence providing there a convenient way to manipulate the contents of the clipboard. While unit 0 is typically used for copy and paste operations, the clipboard.devices offers more than one unit that can also be used to exchange information between programs. For that, use the unit number as file name: 1> echo "Text" >TEXTCLIP:1 will fill clipboard unit #1. _____________________________________________________________________________ Installation: Copy ClipHandler to L: and TextClip and TextClip.info to DEVS:DosDrivers. This will mount TEXTCLIP: on the next reset. Alternatively, mount by hand. _____________________________________________________________________________ History: ClipHandler was/is a contribution to AmigaOs 4 which I had almost forgotten about. Actually, I was a bit surprised to see my name in the sources of Os4 of this, and it took a while to remember that I have written this little gem. ClipHandler is a fairly complete file handler that supports locks, disk information, reading and writing and interlocking of processes. ClipHandler 45.1: First release, apparently prepared for Os 4.0, and long forgotten on the classic machines. ClipHandler 45.20: This integrates the bug-fixes of about 18 years, which were surprisingly few. The ClipHandler DupLock() function duplicated the wrong lock, hence causing memory released twice. ACTION_DISK_INFO could lock out the system because it waited for a write lock to be returned, even though the Copy command first creates the write lock before sending the information request. Also, this release integrates a proper version string and removes trailing zeros from the data hunk, making the program shorter. I am also getting rid of the conclip.library which was build as part of the handler since it is probably not used a lot anyhow. ClipHandler 45.25: This version fixes the information the ClipHandler returns upon ACTION_EXAMINE. Unfortunately, the order of unit and type were reversed. _____________________________________________________________________________ The THOR-Software Licence (v3, January 2nd 2021) This License applies to the computer programs known as the "ClipHandler". The "Program", below, refers to such program. The "Archive" refers to the package of distribution, as prepared by the author of the Program, Thomas Richter. Each licensee is addressed as "you". The Program and the data in the archive are freely distributable under the restrictions stated below, but are also Copyright (c) Thomas Richter. Distribution of the Program, the Archive and the data in the Archive by a commercial organization without written permission from the author to any third party is prohibited if any payment is made in connection with such distribution, whether directly (as in payment for a copy of the Program) or indirectly (as in payment for some service related to the Program, or payment for some product or service that includes a copy of the Program "without charge"; these are only examples, and no
SHA-256
16886091aec3ae4692cc7279da62e9d65dacd8c61c036457f04dedffb41ad032