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

util/cli/ClipRdWr.lha

Mirror:Random
Showing: m68k-amigaos iconppc-amigaos iconppc-morphos iconi386-aros iconi386-amithlon iconppc-warpup iconppc-powerup icongeneric icon
No screenshot available
Short:read+write text from/to any clipb. unit
Author:Jody Tierney
Type:util/cli
Version:1.3
Architecture:m68k-amigaos
Date:2017-05-29
Replaces:util/cli/ClipRdWr12a.lha;util/cli/ClipRW.lha
Download:util/cli/ClipRdWr.lha - View contents
Readme:util/cli/ClipRdWr.readme
Downloads:854

Two CLI programs to display & write text from/to any clipboard unit.
Uploaded to aminet for historical preservation.

Notes:
======

ClipRead
-======-
  A CLI program to display the text in any clipboard unit.

  Usage:  ClipRead [[U=UNIT] <n>] [LF=LFATEND]

          - UNIT <n> - Where <n> is the clipboard unit (0-255) to read.
                       Defaults to PRIMARY_CLIP (currently 0).  It isn't
                       necessary to specify the keyword "UNIT".

          - LFATEND  - Supply a linefeed ($0A) if the string doesn't end with
                       one.  By default, the string is printed exactly as it
                       exists in the clipboard (i.e. it may or may not end
                       with a linefeed).

ClipWrite
-=======-
  A CLI program to write text to any clipboard unit.

  Usage:  ClipWrite [U=UNIT <n>] [NP=NOPARSE] [TEXT] <text>

    - UNIT <n> - Where <n> is the clipboard unit (0-255) to write to.
                 Defaults to PRIMARY_CLIP (currently 0).

    - NOPARSE  - Ignore any format commands (see below) in the text.

    - <text>   - The text to store in the clipboard.  The text may contain
                special format commands, which begin with a backslash ("\"),
                listed below.

      - Text format commands:
        \t     A tab (ASCII 9).
        \n     A linefeed (LF) (ASCII 10).
        \r     A carriage return (CR) (ACSII 13).
        \e     An ESC (ASCII 27).
        \q     A quote mark:  " (ASCII 34).
        \\     A backslash:  \ (ASCII 92).
        \#<n>  Where <n> is the number (0-255) of an ASCII character to
               insert.
                 Examples:  \#169  The copyright character:  ©.

                            \#$A9  Still the copyright character, only this
                                   time we specified it using a hex number.

                            \#%10101001  Yep, copyright again in binary.
        \.     Does nothing; it's useful after a "\#", however:  "\#169\.1997"
               will equal "©1997".  Without the "\.", ClipWrite would try (and
               fail) to evaluate 1691997.


Requirements:
-===========-
  Workbench 2.04 or higher

Thanks To:
-========-
  - God - For life, the universe, & everything.

  - Wouter van Oortmerssen - For Amiga E, the best language I've ever used.

  - My cat - Okay, I'll admit it, he's the real brains of the operation here.

  - Jilles Tjoelker <M.Tjoelker@nl.cis.philips.com> - For spotting and correcting
   the bugs in v1.2a.

  - Ramones - For some really great music to program by.


To Do:
-====-
  - Find any bugs and replace them with newer, more interesting bugs.
  - Maybe more format commands for ClipWrite, if the need arises.


Bugs:
-===-
  - According to the AutoDocs, there were a few bugs in the iffparse.library,
   prior to v39, with the OpenClipboard() function.


http://myplace.frontier.com/~jodytierney/prgsutil.html

Cheers!
https://twitter.com/AmigaSourcePres

  _____ ___   _   __  __     _   __  __ ___ ___   _   
 |_   _| __| /_\ |  \/  |   /_\ |  \/  |_ _/ __| /_\  
   | | | _| / _ \| |\/| |  / _ \| |\/| || | (_ |/ _ \ 
  _|_| |___/_/ \_\_|_ |_|_/_/_\_\_|__|_|___\___/_/_\_\
 / __|/ _ \| | | | _ \/ __| __|  / __/ _ \|   \| __|  
 \__ \ (_) | |_| |   / (__| _|  | (_| (_) | |) | _|   
 |___/\___/_\___/|_|_\\___|___|__\___\___/|___/|___|_ 
 | _ \ _ \ __/ __| __| _ \ \ / /_\_   _|_ _/ _ \| \| |
 |  _/   / _|\__ \ _||   /\ V / _ \| |  | | (_) | .` |
 |_| |_|_\___|___/___|_|_\ \_/_/ \_\_| |___\___/|_|\_|
                                                      





Contents of util/cli/ClipRdWr.lha
PERMISSION  UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP     NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
-rw-r--r--  1000/1000     1714    3876  44.2% -lh5- 40ec May 28 15:28 ClipRdWr.readme
-rw-r--r--  1000/1000     1465    2332  62.8% -lh5- 21ed May 28 04:52 ClipRead
-rw-r--r--  1000/1000     2311    5504  42.0% -lh5- 5d75 May 28 04:52 ClipReadWrite.doc
-rw-r--r--  1000/1000      397     567  70.0% -lh5- 4c03 May 28 04:52 ClipReadWrite.doc.info
-rw-r--r--  1000/1000     1833    2848  64.4% -lh5- fa5c May 28 04:52 ClipWrite
---------- ----------- ------- ------- ------ ---------- ------------ ----------
 Total         5 files    7720   15127  51.0%            May 28 21:45
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>