E298GB — Руководство по эксплуатации электронной системы Kuhnke E298GB (EN)

Command sequences Direct cursor positioning Hex 1Bh 1Dh ZBP SBP Decimal 27 61 ZBP SBP ASCII ESC = ZBP SBP The cursor is positioned at the position of the writing area des- cribed by (ZBP,SBP). The top left corner of the writing area has the character position (0,0). ZBP and SBP are defined by the desired coordinates and the addition of 32 (decimal). This is the only command by which the cursor can be posi- tioned outside the set scroll area. Example: 1Bh 1Dh 20 20 This command brings the cursor to position (0,0) of the writing area. Readout of the cursor position Hex 1Bh 3Fh Decimal 27 63 ASCII ESC ?

After the terminal has received this command it reports the cur- rent cursor position to the connected computer. The line position is transferred first followed by the column position. In the terminal, 32 (decimal) is added to each value and the re- sulting ASCII code is transferred to the computer. This is followed by a CR (Carriage Return, ODh) character. Example: 20h 20h ODh Cursor position = (0, 0) 4 - 6