C. Writing Termcap Descriptions : Eleven Basic Commands : Cursor Motion Command : Example 4: Delta Data 5000
 
Share this page                  
Example 4: Delta Data 5000
The cursor motion string for the delta data 5000 is Control‑Oxy, where x and y are characters whose binary values must be offset by 3A hex, and converted according to the reverse coding formula:
(x‑2*(x mod 16))
The cm string for this terminal is:
cm=^O%D%+9%D%+9
The ^O stands for Control‑O, %D indicates that the parameters must be transformed according to the reverse coding formula, and %+9 is the place marker for a character offset by 3A hex (ASCII character 9).
Terminal
Entry Listed in Guide
Example Usage on Terminal Mode
Example of the Termcap Description
rti100
ESC|x;y
ESC|02;07
cm=\E|%2;%2
vt100
ESC[x;yH
ESC[03;08H
cm=5\E[%i%2;%2H
dm3045
ESCYyx
ESCY2*
cm=\EY%r%+%+
delta
Control‑Oxy
Control‑ORS
cm=^O%D%+9%
D%+9