b3270 graphic rendition attributes are a comma-separated list of the following values:
|reverse||Monochrome displays only|
|wide||Each character takes two columns|
|order||3270 order made visible|
|private-use||Use the Private Use Area for copy/paste|
|no-copy||Do not copy into the paste buffer|
|wrap||An NVT-mode line wrap occurred after this character|
An empty value indicates the default (none of the above properties are set).
When a location has the order attribute, the contents are a visible representation of a 3270 order that would normally be displayed as a blank. This is done when b3270 has the visibleControl resource set to true.
Note that except when the private-use attribute is also set, visible orders should be copied into a paste buffer as a space (U+0020).
When a location has the private-use attribute, it should be treated specially when copied into a paste buffer: the character value should be offset by the value 0xe000 to put it in the Unicode BMP Private Use Area. For example, the * character (U+002a), when marked with private-use, represents the EBCDIC character DUP (X'1C'). It should be encoded in the paste buffer as U+e02a. The Z character (U+005a), when marked with private-use, represents the APL EBCDIC character Underlined Z (GE X'69'). It should be encoded in the paste buffer as U+e05a. This rule applies even if the order attribute it set (normally orders are represented as U+0020 in the paste buffer).
So the hierarchy for selecting a value to copy into the paste buffer is:
- if no-copy is set, do not copy anything
- else if private-use is set, add 0xe000
- else if order is set, substitute U+0020
- else copy the value as-is