Dismiss
InnovationQ will be updated on Sunday, Oct. 22, from 10am ET - noon. You may experience brief service interruptions during that time.
Browse Prior Art Database

Clipboard Format for ASCII Text With Attributes

IP.com Disclosure Number: IPCOM000120329D
Original Publication Date: 1991-Apr-01
Included in the Prior Art Database: 2005-Apr-02
Document File: 2 page(s) / 41K

Publishing Venue

IBM

Related People

Malcolm, JW: AUTHOR

Abstract

The problem this article solves is to define a standard format for clipboard interchange data that includes standard ASCII text including attributes. This article relates to the Communications Manager portion of IBM OS/2* Extended Edition.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 81% of the total text.

Clipboard Format for ASCII Text With Attributes

      The problem this article solves is to define a standard
format for clipboard interchange data that includes standard ASCII
text including attributes.  This article relates to the
Communications Manager portion of IBM OS/2* Extended Edition.

      IBM OS/2 Presentation Manager* provides a clipboard function
that allows applications to interchange data. Several interchange
formats are provided to meet specific needs of individual
applications.

      Examples of these are:
      *  Simple ASCII text
      *  Bit Image
      *  Metafile (graphics drawing instructions)

      Where many applications only want the pure text from another
application, other applications may wish to obtain the display
attributes for the text as well, such as color, underscore, etc.  The
Presentation Manager does not provide a standard format that includes
attributes.

      This article defines a new format for clipboard data
interchange.  This format will contain the ASCII text and each
character's associated display attributes.

      The format is defined as four bytes for each character:
      1.  ASCII character
      2.  Attribute byte #1
      3.  Attribute byte #2
      4.  Attribute byte #3

      Two special control characters are defined in this format:
   1.  Carriage Return (ASCII x'0D') - Indicates end of
       line
   2.  Null (ASCII x'00') - In...