157 lines
5.2 KiB
HTML
157 lines
5.2 KiB
HTML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="dc.language" scheme="rfc1766" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<meta name="dc.date" scheme="iso8601" content="2005-09-06" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow"/>
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<title>SCS</title>
|
|
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
|
|
<link rel="stylesheet" type="text/css" href="ic.css" />
|
|
</head>
|
|
<body>
|
|
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
|
|
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
|
|
|
|
|
|
<a name="rzaluscs"></a>
|
|
<h4 id="rzaluscs">SCS</h4>
|
|
<p>The SNA character string (SCS) has a relatively simple structure, consisting
|
|
of a 1-byte hexadecimal control code followed by the data to be printed. Multiple
|
|
control codes can be inserted into SCS by printing applications in order to
|
|
achieve certain types of output. The SNA character string is sent to the printer
|
|
in physical blocks of 256 bytes.</p>
|
|
<p>The following are a few examples of SCS control codes:</p>
|
|
<a name="wq25"></a>
|
|
<table id="wq25" width="100%" summary="" border="0" frame="void" rules="none">
|
|
<thead valign="bottom">
|
|
<tr>
|
|
<th id="wq26" width="33%" align="left">Hex</th>
|
|
<th id="wq27" width="33%" align="left">Description</th>
|
|
<th id="wq28" width="33%" align="left">Code</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody valign="top">
|
|
<tr>
|
|
<td headers="wq26">03</td>
|
|
<td headers="wq27">ASCII transparent data</td>
|
|
<td headers="wq28">(TRNA)</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq26">05</td>
|
|
<td headers="wq27">Horizontal tab</td>
|
|
<td headers="wq28">(HT)</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq26">0B</td>
|
|
<td headers="wq27">Vertical tab</td>
|
|
<td headers="wq28">(VT)</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq26">0C</td>
|
|
<td headers="wq27">Forms feed</td>
|
|
<td headers="wq28">(FF)</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq26">0D</td>
|
|
<td headers="wq27">Carriage return</td>
|
|
<td headers="wq28">(CR)</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq26">1A</td>
|
|
<td headers="wq27">Unit backspace</td>
|
|
<td headers="wq28">(UBS)</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq26">15</td>
|
|
<td headers="wq27">New line</td>
|
|
<td headers="wq28">(NL)</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq26">16</td>
|
|
<td headers="wq27">Backspace</td>
|
|
<td headers="wq28">(BS)</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq26">35</td>
|
|
<td headers="wq27">Transparent</td>
|
|
<td headers="wq28">(TRN)</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq26">2843</td>
|
|
<td headers="wq27">Set attribute</td>
|
|
<td headers="wq28">(SA)</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq26">2BC1</td>
|
|
<td headers="wq27">Set horizontal format</td>
|
|
<td headers="wq28">(SHF)</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq26">2BC2</td>
|
|
<td headers="wq27">Set vertical format</td>
|
|
<td headers="wq28">(SVF)</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq26">2BC6</td>
|
|
<td headers="wq27">Set line density</td>
|
|
<td headers="wq28">(SLD)</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq26">2BD2</td>
|
|
<td headers="wq27">Set presentation page size</td>
|
|
<td headers="wq28">(SPPS)</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq26">2BD4</td>
|
|
<td headers="wq27">Begin underscore</td>
|
|
<td headers="wq28">(BUS)</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="wq26">2BFE</td>
|
|
<td headers="wq27">Load alternate character</td>
|
|
<td headers="wq28">(LAC)</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p><span class="bold">How print attributes are accomplished by SCS</span></p>
|
|
<p>The following examples show how common print functions can be accomplished
|
|
by printing applications using SCS.</p>
|
|
<dl>
|
|
<dt class="bold">Line spacing</dt>
|
|
<dd>The equivalent number of NL (new line) control codes is inserted.
|
|
</dd>
|
|
<dt class="bold">Underlining</dt>
|
|
<dd>The underlined text is first inserted into SCS, followed by the appropriate
|
|
number of BS (backspace) control codes, and then the same number of underscores.
|
|
</dd>
|
|
<dt class="bold">Overstriking</dt>
|
|
<dd>This is similar to underlining, except that the overstrike characters
|
|
are used instead of the underscore.
|
|
</dd>
|
|
<dt class="bold">Emphasis</dt>
|
|
<dd>The text to be emphasized is put into SCS, followed by the necessary
|
|
number of BS (backspace) control codes and then the emphasized text is repeated.
|
|
This sequence could be repeated several times.
|
|
</dd>
|
|
<dt class="bold">Page eject</dt>
|
|
<dd>The FF (forms feed) control code is inserted.
|
|
</dd>
|
|
<dt class="bold">Font changes</dt>
|
|
<dd>Font changes are supported by printers such as the 5219 that support
|
|
final-form text (FFT).
|
|
</dd>
|
|
</dl>
|
|
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
|
|
</body>
|
|
</html>
|