AminetAminet
Search:
82753 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/shell/ClipHandler.lha

Mirror:Random
Showing:ppc-amigaosgeneric
No screenshot available
Short:Handler to access the clipboard on the shell
Author:thorfdbg at alumni.tu-berlin.de (Thomas Richter)
Uploader:thorfdbg alumni tu-berlin de (Thomas Richter)
Type:util/shell
Version:45.20
Architecture:m68k-amigaos >= 2.0.4
Date:2018-04-30
Download:http://aminet.net/util/shell/ClipHandler.lha - View contents
Readme:http://aminet.net/util/shell/ClipHandler.readme
Downloads:713
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.


_____________________________________________________________________________


                         The THOR-Software Licence (v2, 24th June 1998)


This License applies to the computer programs known as "SCSIQuery".
The "Program", below, refers to such program. The "Archive" refers to the 
original and unmodified package of distribution, as prepared by the author 
of the Program. 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 not an exhaustive enumeration
of prohibited activities).


However, the following methods of distribution
involving payment shall not in and of themselves be a violation of this
restriction:


(i) Posting the Program on a public access information storage and
retrieval service for which a fee is received for retrieving information
(such as an on-line service), provided that the fee is not
content-dependent (i.e., the fee would be the same for retrieving the same
volume of information consisting of random data).


(ii) Distributing the Program on a CD-ROM, provided that

a) the Archive is reproduced entirely and verbatim on such CD-ROM, including
especially this licence agreement;

b) the CD-ROM is made available to the public for a nominal fee only,

c) a copy of the CD is made available to the author for free except for
shipment costs, and

d) provided further that all information on such CD-ROM is redistributable
for non-commercial purposes without charge.


Redistribution of a modified version of the Archive, the Program or the
contents of the Archive is prohibited in any way, by any organization,
regardless whether commercial or non-commercial. Everything must be kept
together, in original and unmodified form.




Limitations.


THE PROGRAM IS PROVIDED TO YOU "AS IS", WITHOUT WARRANTY. THERE IS NO
WARRANTY FOR THE PROGRAM, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. THE ENTIRE
RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD
THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY
SERVICING, REPAIR OR CORRECTION.


IF YOU DO NOT ACCEPT THIS LICENCE, YOU MUST DELETE THE PROGRAM, THE ARCHIVE
AND ALL DATA OF THIS ARCHIVE FROM YOUR STORAGE SYSTEM. YOU ACCEPT THIS
LICENCE BY USING OR REDISTRIBUTING THE PROGRAM.


                                                        Thomas Richter
_____________________________________________________________________________

And now, have fun!

	Thomas		(April 2018)


Contents of util/shell/ClipHandler.lha
PERMISSION  UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP     NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[unknown]                 4345    7332  59.3% -lh5- d2f2 Apr 29 17:06 ClipHandler/ClipHandler
[unknown]                 2718    6212  43.8% -lh5- 4c7f Apr 30 11:52 ClipHandler/ClipHandler.readme
[unknown]                   74      80  92.5% -lh5- 06c9 Apr 29 13:41 ClipHandler/TEXTCLIP
[unknown]                  265     481  55.1% -lh5- 9fff Apr 29 13:40 ClipHandler/TEXTCLIP.info
---------- ----------- ------- ------- ------ ---------- ------------ ----------
 Total         4 files    7402   14105  52.5%            Apr 30 19:44

Aminet © 1992-2019 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>