Mnemonic
|
Description
|
%d
|
Send the integer to the terminal in ASCII format.
|
%2
|
Pads the value with a leading blank if it is only one digit.
|
%3
|
Pads the value with up to two leading blanks.
|
%.
|
Treats the value as an ASCII character value.
|
%+x
|
Sets value += x, then does a %
|
%>xy
|
If value > x, then value +=y; no output
|
%r
|
Reverses the order of row and column; no output
|
%i
|
Allows row and column values based on a zero origin to be incremented by one to make them appropriate for terminals whose origin is at (1,1)
|
%%
|
Gives a single %
|
%n
|
Exclusive OR row and column with 0140
|
%B
|
BCD (16*(value/10)) + (value%10); no output
|
%D
|
Reverses coding (value - 2*(value%16)); no output
|
%x
|
Gives a two-byte, zero-padded, hex value as in the "%0.2x" format for the UNIX printf() function
|
%M
|
Not similar to any UNIX printf( ) format, and given the row (row) and column (col), %Mx%Mx translates to:p1 = row / x + x p2 = row mod x + x p3 = col / x + x p4 = col mod x + 2xWhere p1 through p4 are sent to the terminal as characters
|
:cm=\E[%i%d;%dH:\
|